mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Switch to pytests, add a tiny bit of smoke test coverage to get something coverage no longer gets
This commit is contained in:
@@ -36,7 +36,9 @@ grep -r -I --line-number "# pragma: +no.*cover" octodns && {
|
||||
exit 1
|
||||
}
|
||||
|
||||
coverage run --branch --source=octodns --omit=octodns/cmds/* "$(command -v nosetests)" --with-no-network --with-xunit "$@"
|
||||
export PYTHONPATH=.:$PYTHONPATH
|
||||
|
||||
coverage run --branch --source=octodns --omit=octodns/cmds/* "$(command -v pytest)" --disable-network "$@"
|
||||
coverage html
|
||||
coverage xml
|
||||
coverage report --show-missing
|
||||
|
||||
@@ -30,4 +30,6 @@ export ARM_CLIENT_SECRET=
|
||||
export ARM_TENANT_ID=
|
||||
export ARM_SUBSCRIPTION_ID=
|
||||
|
||||
nosetests --with-no-network "$@"
|
||||
export PYTHONPATH=.:$PYTHONPATH
|
||||
|
||||
pytest --disable-network "$@"
|
||||
|
||||
Reference in New Issue
Block a user