Skip to content

Commit

Permalink
Review fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyzdanovich committed Jan 21, 2025
1 parent a7b80f2 commit 87a9eae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
17 changes: 14 additions & 3 deletions functional-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Check failure on line 94 in functional-tests/README.md

View workflow job for this annotation

GitHub Actions / Check code spellings

runnig ==> running
```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.
5 changes: 4 additions & 1 deletion functional-tests/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 87a9eae

Please sign in to comment.