Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Oct 20, 2023
1 parent 0b9f033 commit b475309
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ defmodule Xandra.Mixfile do

# Testing
preferred_cli_env: [
"test.cassandra": :test,
"test.scylladb": :test,
"test.native_protocols": :test,
"test.all": :test,
"test.all_with_html_coverage": :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
Expand Down Expand Up @@ -106,7 +109,15 @@ defmodule Xandra.Mixfile do
]
)
end,
"test.all": ["test.cassandra", "test.scylladb"],
"test.all": fn args ->
Mix.Task.run("test.cassandra", args)
Mix.Task.run("test.scylladb", args)
end,
"test.all_with_html_coverage": fn args ->
Mix.Task.run("test.cassandra", ["--cover", "--export-coverage", "cassandra" | args])
Mix.Task.run("test.scylladb", ["--cover", "--export-coverage", "scylla" | args])
Mix.Task.run("coveralls.html", ["--exclude", "test", "--import-cover", "cover"])
end,
docs: [
"run pages/generate_telemetry_events_page.exs",
"docs"
Expand Down

0 comments on commit b475309

Please sign in to comment.