Skip to content

Commit 7803cf0

Browse files
authored
fix: unit test script halts on first failure (#189)
Signed-off-by: Terry Kong <terryk@nvidia.com>
1 parent 09addfe commit 7803cf0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ exclude = '''
7979
'''
8080

8181
[tool.pytest.ini_options]
82+
addopts = "--cov=nemo_reinforcer --cov-report=term --cov-report=json -s -rA -x"
8283
testpaths = ["tests"]
8384
python_files = "test_*.py"
8485

tests/run_unit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export PYTHONPATH=$(realpath ${SCRIPT_DIR}/..):${PYTHONPATH:-}
3232

3333
# Run unit tests
3434
echo "Running unit tests..."
35-
if ! pytest unit/ --cov=nemo_reinforcer --cov-report=term --cov-report=json -s -rA "$@"; then
35+
if ! pytest unit/ "$@"; then
3636
echo "[ERROR]: Unit tests failed."
3737
exit 1
3838
fi

0 commit comments

Comments
 (0)