diff --git a/dev-env.sh b/dev-env.sh index 07b0c3d66..b1d0a7db2 100644 --- a/dev-env.sh +++ b/dev-env.sh @@ -89,6 +89,14 @@ function agora-build-images { nx run-many --target=build-image --projects=agora-* --parallel=3 } +function agora-test { + nx run-many --target=test --projects=agora-* --parallel=10 +} + +function agora-test-affected { + nx affected --target=test --projects=agora-* --parallel=10 +} + function model-ad-build-images { nx run-many --target=build-image --projects=model-ad-* --parallel=3 } diff --git a/tools/run-unit-tests.sh b/tools/run-unit-tests.sh deleted file mode 100755 index 81133fc1b..000000000 --- a/tools/run-unit-tests.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Check if a prefix argument was provided -if [ -z "$1" ]; then - echo "Please provide a project prefix (e.g., agora-)." - exit 1 -fi - -# Prefix provided by the user -PREFIX=$1 - -# Find all projects that start with the provided prefix -PROJECTS=$(nx show projects | grep "^$PREFIX" | tr '\n' ',' | sed 's/,$//') - -# Check if any projects were found -if [ -z "$PROJECTS" ]; then - echo "No projects found with the prefix '$PREFIX'." - exit 1 -fi - -# Run the tests for the filtered projects -nx run-many --target=test --projects=$PROJECTS