diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2021-11-12 12:03:28 -0500 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2022-01-18 10:30:17 -0800 |
commit | 3ff9e58a76e40c9b47db59e72b5cdd11fbaf9ff3 (patch) | |
tree | a900a2958a92c7b74f1920723aa4e3d2a770ce0c | |
parent | b7a3a4fad21e7def12784ea5cacd402a18048696 (diff) | |
download | couchdb-port-consolidate-elixir-targets.tar.gz |
Do not start test name with "test "port-consolidate-elixir-targets
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.
-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) |