Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
4 parallel tests
Browse files Browse the repository at this point in the history
1 for each subclass (even if no snapshots were made)
  • Loading branch information
chriddyp committed Sep 19, 2017
1 parent ee2ac50 commit 270628f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/IntegrationTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def percy_snapshot(cls, name=''):
def setUpClass(cls):
print('PERCY_PARALLEL_NONCE')
print(os.environ['PERCY_PARALLEL_NONCE'])
print('PERCY_PARALLEL_TOTAL')
print(os.environ['PERCY_PARALLEL_TOTAL'])
super(IntegrationTests, cls).setUpClass()
cls.driver = webdriver.Chrome()

Expand All @@ -34,16 +36,14 @@ def setUpClass(cls):
)
cls.percy_runner = percy.Runner(loader=loader)

if sys.version_info.major == 2:
cls.percy_runner.initialize_build()
cls.percy_runner.initialize_build()


@classmethod
def tearDownClass(cls):
super(IntegrationTests, cls).tearDownClass()
cls.driver.quit()
if sys.version_info.major == 3:
cls.percy_runner.finalize_build()
cls.percy_runner.finalize_build()

def setUp(s):
pass
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ passenv = *
[testenv:py27]
basepython =
{env:TOX_PYTHON_27}
setenv =
PERCY_PARALLEL_TOTAL=4
commands =
python --version
python -m unittest tests.test_render.Tests
Expand All @@ -18,7 +20,7 @@ commands =
basepython =
{env:TOX_PYTHON_36}
setenv =
PERCY_PARALLEL_TOTAL=2
PERCY_PARALLEL_TOTAL=4
commands =
python --version
python -m unittest tests.test_render.Tests
Expand Down

0 comments on commit 270628f

Please sign in to comment.