Add support for running parallelized tests locally
This commit is contained in:
@@ -26,3 +26,6 @@ fd = 'latest'
|
||||
|
||||
[task_config]
|
||||
includes = ["scripts"]
|
||||
|
||||
[tasks.test]
|
||||
depends = ["dev:partitioned-test 1", "dev:partitioned-test 2"]
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#MISE description="Run project tests"
|
||||
#USAGE arg "<partition_number>" help="The number of the partition"
|
||||
|
||||
set -e
|
||||
|
||||
source "$(git rev-parse --show-toplevel)/scripts/_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
MIX_TEST_PARTITION="${usage_partition_number}" mix test --partitions 2
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#MISE description="Run project tests"
|
||||
|
||||
set -e
|
||||
|
||||
source "$(git rev-parse --show-toplevel)/scripts/_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
mix test
|
||||
Reference in New Issue
Block a user