diff --git a/functional-tests/README.md b/functional-tests/README.md index 6a1cb3141..a2d7a244b 100644 --- a/functional-tests/README.md +++ b/functional-tests/README.md @@ -79,16 +79,27 @@ You can run all tests: ./run_test.sh ``` -Or, you can run a specific test: +You also can run a specific test: ```bash -./run_test.sh fn_bridge_deposit_happy +./run_test.sh -t tests/bridge/bridge_deposit_happy.py +``` + +Or, you can run a specific test group: + +```bash +./run_test.sh -g bridge +``` + +The full list of arguments for runnig tests can be viewed by: +```bash +./run_test.sh -h ``` ## Running prover tasks ```bash -PROVER_TEST=1 ./run_test.sh fn_prover_client.py +PROVER_TEST=1 ./run_test.sh -g prover ``` The test harness script will be extended with more functionality as we need it. diff --git a/functional-tests/entry.py b/functional-tests/entry.py index 2123561a1..4f8ccfcfa 100755 --- a/functional-tests/entry.py +++ b/functional-tests/entry.py @@ -25,7 +25,10 @@ def filter_tests(parsed_args, modules): """ arg_groups = frozenset(parsed_args.groups or []) - arg_tests = frozenset([t.removesuffix(".py") for t in parsed_args.tests or []]) + # Extract filenames from the tests paths. + arg_tests = frozenset( + [os.path.split(t)[1].removesuffix(".py") for t in parsed_args.tests or []] + ) filtered = dict() for test, path in modules.items():