You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2022/01/13 18:52:33 UTC

[couchdb] 01/01: Do not start test name with "test "

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch port-consolidate-elixir-targets
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 8d352fc58dcf1fd28809605c90887fd0228e34ee
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Fri Nov 12 12:03:28 2021 -0500

    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.
---
 test/elixir/test/attachments_test.exs | 2 +-
 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 2bf38de..f1dd3ef 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 258f5f7..85d2dd1 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)