Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .run/commands/pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,15 @@ command_pytest() {

shift $((OPTIND -1)) # pop off the options consumed by getopts

color=""
if [ "$GITHUB_ACTIONS" == "true" ] && [ "$RUNNER_OS" == "Windows" ]; then
color="--color no" # color messes up the terminal on Windows in GHA
fi

if [ $coverage == "yes" ]; then
run_command uvrun pytest --cov=. --testdox --force-testdox $color $tests
PYTHONUTF8=1 run_command uvrun pytest --cov=. --testdox --force-testdox $tests
run_command uvrun coverage lcov -o .coverage.lcov
if [ $html == "yes" ]; then
run_command uvrun coverage html -d .htmlcov
run_command openfile .htmlcov/index.html
fi
else
run_command uvrun pytest --testdox --force-testdox $color $tests
PYTHONUTF8=1 run_command uvrun pytest --testdox --force-testdox $tests
fi
}

1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Version 0.3.1 unreleased
* Fix Sphinx autoapi to generate docs for source, not tests.
* Add support for Visual Studio Code as an IDE.
* Use pytest-cov for test coverage, for more consistency.
* Fix pytest-testdox output in GHA Windows runner.

Version 0.3.0 24 Sep 2025

Expand Down
Loading