From: peusterm Date: Wed, 16 May 2018 14:35:17 +0000 (+0200) Subject: Improved test triggers for unit tests. X-Git-Tag: v4.0.1~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F6155%2F2;p=osm%2Fvim-emu.git Improved test triggers for unit tests. Change-Id: Ib3a886da8a6f181fc04f4b6b4a42230deac79d4d Signed-off-by: peusterm --- diff --git a/README.md b/README.md index 0c59264..e471c9e 100755 --- a/README.md +++ b/README.md @@ -132,8 +132,8 @@ Please check [this OSM wiki page](https://osm.etsi.org/wikipub/index.php/Workflo To run the unit tests do: * `cd ~/vim-emu` -* `sudo py.test -v src/emuvim/test/unittests` -(To force Python2: `python2 -m pytest -v src/emuvim/test/unittests`) +* `sudo pytest -v` +* (To force Python2: `sudo python2 -m pytest -v`) ## Seed code contributors: diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh index 10dbe02..3228a0d 100755 --- a/devops-stages/stage-test.sh +++ b/devops-stages/stage-test.sh @@ -38,10 +38,12 @@ docker pull 'ubuntu:trusty' # debugging echo "Tests executed inside: $(hostname)" echo "Tests executed by user: $(whoami)" -# trigger the tests cd /son-emu/ -py.test -v src/emuvim/test/unittests # trigger pep8 style check echo "Doing flake8 style check ..." flake8 --exclude=.eggs,devops --ignore=E501 . echo "done." +# trigger the tests +echo "Running unit tests ..." +pytest -v +echo "done." diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..137eee5 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +addopts = --ignore devops +log_level = DEBUG