Conditions | 4 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """A python runner for nodejs test files.""" |
||
8 | def check_tests(): |
||
9 | """Run all tests.""" |
||
10 | js_files = [f for f in os.listdir('.') if f.endswith('Spec.js')] |
||
11 | results = dict() |
||
12 | for spec in js_files: |
||
13 | results[spec] = subprocess.call(['jasmine', spec]) |
||
14 | all_passed = sum(results.values()) == 0 |
||
15 | return all_passed |
||
16 | |||
25 |