Skip to content

Commit

Permalink
Add module tag to elixir test cases
Browse files Browse the repository at this point in the history
Some elixir test cases don't have actual module tag. Add tags to
help include or exclude them in CI test.
  • Loading branch information
jiangphcn committed Sep 29, 2020
1 parent 3b815a6 commit 49260e5
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/elixir/test/reshard_all_docs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule ReshardAllDocsTest do
Test _all_docs interaction with resharding
"""

@moduletag :reshard_all_docs
@moduletag kind: :cluster

setup do
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/reshard_basic_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule ReshardBasicTest do
Test resharding basic functionality
"""

@moduletag :reshard_basic
@moduletag kind: :cluster

setup_all do
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/reshard_changes_feed.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule ReshardChangesFeedTest do
Test _changes interaction with resharding
"""

@moduletag :reshard_changes_feed
@moduletag kind: :cluster

setup do
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/update_documents_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule UpdateDocumentsTest do
use CouchTestCase

@moduletag :docs
@moduletag kind: :single_node

@ddoc %{
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_collation_raw_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule ViewCollationRawTest do
This is a port of the view_collation_raw.js suite
"""

@moduletag :view_collation_raw
@moduletag kind: :single_node

@values [
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_collation_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule ViewCollationTest do
This is a port of the view_collation.js suite
"""

@moduletag :view_collation
@moduletag kind: :single_node

@values [
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_compaction_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule ViewCompactionTest do
This is a port of the view_compaction.js suite
"""

@moduletag :view_compaction
@moduletag kind: :single_node

@num_docs 1000
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_conflicts_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ViewConflictsTest do
use CouchTestCase

@moduletag :view_conflicts
@moduletag kind: :single_node

setup_all do
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_errors_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ViewErrorsTest do
use CouchTestCase

@moduletag :view_errors
@moduletag kind: :single_node

@document %{integer: 1, string: "1", array: [1, 2, 3]}
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_include_docs_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ViewIncludeDocsTest do
use CouchTestCase

@moduletag :view_include_docs
@moduletag kind: :single_node

@ddoc %{
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_multi_key_all_docs_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ViewMultiKeyAllDocsTest do
use CouchTestCase

@moduletag :view_multi_key_all_docs
@moduletag kind: :single_node

@keys ["10", "15", "30", "37", "50"]
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_multi_key_design_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ViewMultiKeyDesignTest do
use CouchTestCase

@moduletag :view_multi_key_design
@moduletag kind: :single_node

@keys [10, 15, 30, 37, 50]
Expand Down
1 change: 1 addition & 0 deletions test/elixir/test/view_sandboxing_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ViewSandboxingTest do
use CouchTestCase

@moduletag :view_sandboxing
@moduletag kind: :single_node

@document %{integer: 1, string: "1", array: [1, 2, 3]}
Expand Down

0 comments on commit 49260e5

Please sign in to comment.