Commit 57742719 authored by EXT José Ignacio Requeno Jarabo's avatar EXT José Ignacio Requeno Jarabo
Browse files

Reducing time in test_Search

parent 0f1d6dc7
Pipeline #21081 passed with stages
in 19 minutes and 43 seconds
......@@ -9,6 +9,10 @@ build_test:
stage: build_test
script:
- apt-get update
## Configuring graphical interface
- apt-get install -yqq xvfb
- Xvfb :99 -screen 0 1280x720x24 -ac &
- export DISPLAY=:99
## Downloading requirements
- apt-get -y install openjdk-8-jre
- apt-get -y install python-pip
......@@ -43,15 +47,15 @@ test:
- build
script:
- apt-get update
## Configuring graphical interface
- apt-get install -yqq xvfb
- Xvfb :99 -screen 0 1280x720x24 -ac &
- export DISPLAY=:99
## Downloading requirements
- apt-get -y install openjdk-8-jre
- apt-get -y install python-pip
- apt-get -y install python-tk
- apt-get -y install python-pytest
## Configuring graphical interface
- apt-get install -yqq xvfb
- Xvfb :99 -screen 0 1280x720x24 -ac &
- export DISPLAY=:99
## Configuring tests
- pip install coverage
- pip install pytest
......
......@@ -237,11 +237,11 @@ class SearchOracleSTLTestCase(SearchTestCase):
self.max_c = 2.0
# Configuring searching parameters
self.EPS = 1e-1
self.EPS = float("inf")
self.DELTA = 1e-1
self.STEPS = 1
@pytest.mark.timeout(120, method='thread')
@pytest.mark.timeout(300, method='thread')
def test_1D(self):
test_dir = os.path.join(self.this_dir, '1D')
files_path = os.listdir(test_dir)
......@@ -250,7 +250,7 @@ class SearchOracleSTLTestCase(SearchTestCase):
list_test_files = sorted(list_test_files)[:num_files_test]
self.search_verify_ND(human_readable=True, list_test_files=list_test_files)
@pytest.mark.timeout(120, method='thread')
@pytest.mark.timeout(300, method='thread')
def test_2D(self):
test_dir = os.path.join(self.this_dir, '2D')
files_path = os.listdir(test_dir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment