Skip to content

Commit

Permalink
Add module tag to elixir test cases (#3178)
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 authored and jjrodrig committed Oct 7, 2020
1 parent b616cc1 commit 8bea5f2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
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 8bea5f2

Please sign in to comment.