diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2021-11-12 12:03:28 -0500 |
---|---|---|
committer | Jay Doane <jay.s.doane@gmail.com> | 2022-01-20 13:46:02 -0800 |
commit | ab700ba2aeccd2ea66a699c33b498f815a1697fc (patch) | |
tree | 2ae75ff722f9045859ef9795bb154155e8a54782 /test | |
parent | 63a9d458aec57ba11fdc0bf14d1f01e17151b12c (diff) | |
download | couchdb-ab700ba2aeccd2ea66a699c33b498f815a1697fc.tar.gz |
Do not start test name with "test "
The code that generates suite.elixir will repreatedly strip the "test "
from the name of the test when writing the file, resulting in a mismatch
between the actual test name and what's in suite.elixir. You can see
this by searching for e.g. COUCHDB-497 in the suite file.
I tried using String.replace_prefix instead of String.replace_leading in
test_name() but that function seems to get called multiple times during
the test grouping. Simpler to just avoid naming the tests that way for
now.
Diffstat (limited to 'test')
-rw-r--r-- | test/elixir/test/attachments_test.exs | 2 | ||||
-rw-r--r-- | test/elixir/test/design_docs_test.exs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/elixir/test/attachments_test.exs b/test/elixir/test/attachments_test.exs index 2bf38de95..f1dd3ef61 100644 --- a/test/elixir/test/attachments_test.exs +++ b/test/elixir/test/attachments_test.exs @@ -313,7 +313,7 @@ defmodule AttachmentsTest do end @tag :with_db - test "test COUCHDB-497 - empty attachments", context do + test "COUCHDB-497 - empty attachments", context do db_name = context[:db_name] lorem_att = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " diff --git a/test/elixir/test/design_docs_test.exs b/test/elixir/test/design_docs_test.exs index 258f5f72f..85d2dd175 100644 --- a/test/elixir/test/design_docs_test.exs +++ b/test/elixir/test/design_docs_test.exs @@ -251,7 +251,7 @@ defmodule DesignDocsTest do end @tag :with_db - test "test that we get correct design doc info back", context do + test "that we get correct design doc info back", context do db_name = context[:db_name] {:ok, _} = create_doc(db_name, @design_doc) |