Skip to content

Commit

Permalink
Merge pull request #213 from MisterFreeze/feature/run_single_function…
Browse files Browse the repository at this point in the history
…al_test

Fixes #212
  • Loading branch information
eerkunt committed Feb 16, 2020
2 parents 4c07438 + 392f1b0 commit 83fc245
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/functional/run_functional_tests.py
Expand Up @@ -11,13 +11,15 @@ class Config(object):
'--no-ansi'
]


print('Running functional tests in {}.'.format(Config.test_dir))

tests = []
for x in os.listdir(Config.test_dir):
if os.path.isdir('{}/{}'.format(Config.test_dir, x)):
tests.append(x)
if len(sys.argv) == 2:
tests = [sys.argv[1]]
else:
tests = []
for x in os.listdir(Config.test_dir):
if os.path.isdir('{}/{}'.format(Config.test_dir, x)):
tests.append(x)

print('Total {} number of tests will be executed.'.format(len(tests)))

Expand Down

0 comments on commit 83fc245

Please sign in to comment.