use pytest for testing
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 15 Sep 2017 19:53:49 +0300
changeset 1810 70768bd1dab3
parent 1809 3f0a552549d1
child 1811 4e3c78a84c64
use pytest for testing
bitbucket-pipelines.yml
--- a/bitbucket-pipelines.yml	Fri Sep 15 19:51:31 2017 +0300
+++ b/bitbucket-pipelines.yml	Fri Sep 15 19:53:49 2017 +0300
@@ -5,13 +5,18 @@
     checks: # The name that is displayed in the list in the Bitbucket Cloud GUI
         - step:
             script: # Modify the commands below to build your repository.
-              - python --version
+              - /usr/bin/python --version
               - ./tests/tools/check_source.sh
-              - /usr/bin/python ./tests/tools/test_application.py
+              - Xvfb :42 -screen 0 1280x1024x24 &
+              - DISPLAY=:42 pytest --timeout=10 ./tests/tools
+              - pkill -9 Xvfb
 
   default:
     - step:
         script: # Modify the commands below to build your repository.
-          - python --version
+          - /usr/bin/python --version
           - ./tests/tools/check_source.sh
-          - /usr/bin/python ./tests/tools/test_application.py
+          - Xvfb :42 -screen 0 1280x1024x24 &
+          - DISPLAY=:42 pytest --timeout=10 ./tests/tools
+          - pkill -9 Xvfb
+