Sort test cases so order is enforced
parent
d99377dc78
commit
e7a6a20967
|
@ -38,7 +38,7 @@ def discover_tests(skills_dir):
|
||||||
tests = {}
|
tests = {}
|
||||||
skills = [
|
skills = [
|
||||||
skill for skill
|
skill for skill
|
||||||
in glob.glob(skills_dir + '/*')
|
in sorted(glob.glob(skills_dir + '/*'))
|
||||||
if os.path.isdir(skill)
|
if os.path.isdir(skill)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -54,7 +54,8 @@ def discover_tests(skills_dir):
|
||||||
# Find all intent test files
|
# Find all intent test files
|
||||||
test_intent_files = [
|
test_intent_files = [
|
||||||
(f, test_env) for f
|
(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:
|
if len(test_intent_files) > 0:
|
||||||
tests[skill] = test_intent_files
|
tests[skill] = test_intent_files
|
||||||
|
|
|
@ -51,7 +51,8 @@ def discover_tests():
|
||||||
# Find intent tests
|
# Find intent tests
|
||||||
test_intent_files = [
|
test_intent_files = [
|
||||||
f for f
|
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:
|
if len(test_intent_files) > 0:
|
||||||
tests[skill] = test_intent_files
|
tests[skill] = test_intent_files
|
||||||
|
|
|
@ -48,7 +48,8 @@ def discover_tests():
|
||||||
for skill in skills:
|
for skill in skills:
|
||||||
test_intent_files = [
|
test_intent_files = [
|
||||||
f for f
|
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:
|
if len(test_intent_files) > 0:
|
||||||
tests[skill] = test_intent_files
|
tests[skill] = test_intent_files
|
||||||
|
|
Loading…
Reference in New Issue