move pytest args in pytest.ini

This commit is contained in:
Bastian Schroll 2018-01-08 16:35:16 +01:00
parent e108720998
commit def65fe5a9
2 changed files with 7 additions and 2 deletions

View file

@ -28,7 +28,7 @@ if "%test%" == "" (
:start
echo.
python -m pytest -c "_gen/pytest.ini" -v --pep8 --cov --cov-report=term-missing
python -m pytest -c "_gen/pytest.ini"
echo.
echo --- Hit any key to repeat ---
pause
@ -37,7 +37,7 @@ goto start
:start_spec
echo.
python -m pytest test/test_%test%.py -c "_gen/pytest.ini" -v --pep8 --cov --cov-report=term-missing
python -m pytest test/test_%test%.py -c "_gen/pytest.ini"
echo.
echo --- Hit any key to repeat ---
pause

View file

@ -8,6 +8,11 @@
# by Bastian Schroll
[pytest]
addopts = -v --pep8 --cov --cov-report=term-missing
# classic or progress
console_output_style = progress
log_file=log/test.log
log_file_level=debug
log_file_format=%(asctime)s - %(module)-12s %(funcName)-15s [%(levelname)-8s] %(message)s