summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-09 09:40:55 +0200
committerAzul <azul@riseup.net>2017-07-20 12:34:33 +0200
commitd6abd906cb64ae68eed3348eba521bc44ebed7b2 (patch)
treefadf7d8270106a628c31b1f7017f343a94f311f0 /Makefile
parentc81b98df15e3d2006c991c9ca9d86500e3599e9b (diff)
[test] Add basic functional login test
* Move todo list to https://0xacab.org/leap/bitmask-dev/issues/8929 * use bundled pysqlcipher - debian package has not been fixed yet. * reset bitmaskd for each scenario so they are isolated * run functional tests on CI * moved e2e tests before the bundle * add test_functional_graphical Make target * Install chromedriver in docker image * add screenshots as artifacts on failure * run chrome without sandbox for docker Tests were failing on CI with chrome sandbox: https://0xacab.org/leap/bitmask-dev/-/jobs/15196 Used this workaround: https://stackoverflow.com/questions/28364012/webdriver-exception-chrome-not-reachable/28949227#28949227 - Resolves: #8929
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4605c792..c9ce3a7e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,6 @@ dev-mail:
dev-gui: install_pixelated
pip install -e '.[gui]'
-
dev-backend:
pip install -e '.[backend]'
@@ -18,6 +17,7 @@ dev-latest-backend: dev-backend
pip install -e 'git+https://0xacab.org/leap/soledad@master#egg=leap.soledad'
dev-all: install_pixelated
+ pip install -I --install-option="--bundled" pysqlcipher
pip install -e '.[all]'
dev-latest-all: dev-all
@@ -34,6 +34,15 @@ test_e2e:
tests/e2e/e2e-test-mail.sh
tests/e2e/e2e-test-vpn.sh
+test_functional_setup:
+ pip install behave selenium
+
+test_functional:
+ xvfb-run --server-args="-screen 0 1280x1024x24" behave --tags ~@wip --tags @smoke tests/functional/features -k -D host=localhost
+
+test_functional_graphical:
+ behave --tags ~@wip --tags @smoke tests/functional/features -k -D host=localhost
+
install_helpers:
cp src/leap/bitmask/vpn/helpers/linux/bitmask-root /usr/local/sbin/
cp src/leap/bitmask/vpn/helpers/linux/se.leap.bitmask.policy /usr/share/polkit-1/actions/
@@ -41,7 +50,7 @@ install_helpers:
install_pixelated:
# install pixelated from our repo until assets get packaged.
pip install requests==2.11.1 whoosh chardet
- pip install pixelated-www pixelated-user-agent --find-links https://downloads.leap.se/libs/pixelated/
+ pip install pixelated-www pixelated-user-agent --find-links https://downloads.leap.se/libs/pixelated/
qt-resources:
pyrcc5 pkg/branding/icons.qrc -o src/leap/bitmask/gui/app_rc.py