Improved test triggers for unit tests. 55/6155/2
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 16 May 2018 14:35:17 +0000 (16:35 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 16 May 2018 14:47:12 +0000 (16:47 +0200)
Change-Id: Ib3a886da8a6f181fc04f4b6b4a42230deac79d4d
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
README.md
devops-stages/stage-test.sh
pytest.ini [new file with mode: 0644]

index 0c59264..e471c9e 100755 (executable)
--- 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:
 
index 10dbe02..3228a0d 100755 (executable)
@@ -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 (file)
index 0000000..137eee5
--- /dev/null
@@ -0,0 +1,3 @@
+[pytest]
+addopts = --ignore devops
+log_level = DEBUG