From 7e9873c4cf7eecb850577ac6e673c516c0ed18f8 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 29 Jun 2019 19:05:56 +0100 Subject: [PATCH] skip integration test in CI --- server/test_all.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/test_all.py b/server/test_all.py index 954f8bc..0383191 100755 --- a/server/test_all.py +++ b/server/test_all.py @@ -5,7 +5,9 @@ from contextlib import contextmanager from tempfile import TemporaryDirectory import re import json +import os +import pytest # type: ignore from selenium import webdriver # type: ignore @@ -15,6 +17,10 @@ from test_grasp import grasp_test_server addon_path = (Path(__file__).parent.parent / 'build').absolute() +def skip_if_ci(reason): + return pytest.mark.skipif('CI' in os.environ, reason=reason) + + @contextmanager def get_webdriver(): with TemporaryDirectory() as td: @@ -82,6 +88,7 @@ def trigger_grasp(): pyautogui.hotkey('ctrl', 'alt', 'c') +@skip_if_ci('no GUI to run the browser..') def test(tmp_path: Path): capture_file = tmp_path / 'output.org' port = '17777'