diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2021-11-12 12:03:28 -0500 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2021-11-15 12:58:33 -0500 |
commit | e91779cbf122f5a822c884d89c1c55a44a548ee4 (patch) | |
tree | bd5b08717beb7e6f6cc786efd909376d09688dac | |
parent | 94546964eebf7b1e288e74b432657757a88b2cce (diff) | |
download | couchdb-e91779cbf122f5a822c884d89c1c55a44a548ee4.tar.gz |
Do not start test name with "test "
The code that generates suite.elixir will repeatedly 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.
-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 260b94ddb..08fb089fa 100644 --- a/test/elixir/test/attachments_test.exs +++ b/test/elixir/test/attachments_test.exs @@ -300,7 +300,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 f2bd3bd10..034179bde 100644 --- a/test/elixir/test/design_docs_test.exs +++ b/test/elixir/test/design_docs_test.exs @@ -256,7 +256,7 @@ defmodule DesignDocsTest do @tag :pending # No compact_running key @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) |