Sort test cases so order is enforced

pull/1614/head
Åke Forslund 2018-05-28 15:32:56 +02:00
parent d99377dc78
commit e7a6a20967
3 changed files with 7 additions and 4 deletions

View File

@ -38,7 +38,7 @@ def discover_tests(skills_dir):
tests = {}
skills = [
skill for skill
in glob.glob(skills_dir + '/*')
in sorted(glob.glob(skills_dir + '/*'))
if os.path.isdir(skill)
]
@ -54,7 +54,8 @@ def discover_tests(skills_dir):
# Find all intent test files
test_intent_files = [
(f, test_env) for f
in glob.glob(os.path.join(skill, 'test/intent/*.intent.json'))
in sorted(
glob.glob(os.path.join(skill, 'test/intent/*.intent.json')))
]
if len(test_intent_files) > 0:
tests[skill] = test_intent_files

View File

@ -51,7 +51,8 @@ def discover_tests():
# Find intent tests
test_intent_files = [
f for f
in glob.glob(os.path.join(skill, 'test/intent/*.intent.json'))
in sorted(
glob.glob(os.path.join(skill, 'test/intent/*.intent.json')))
]
if len(test_intent_files) > 0:
tests[skill] = test_intent_files

View File

@ -48,7 +48,8 @@ def discover_tests():
for skill in skills:
test_intent_files = [
f for f
in glob.glob(os.path.join(skill, 'test/intent/*.intent.json'))
in sorted(
glob.glob(os.path.join(skill, 'test/intent/*.intent.json')))
]
if len(test_intent_files) > 0:
tests[skill] = test_intent_files