generated from minitorch/Module-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.py
31 lines (31 loc) · 1 KB
/
run_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os, sys
if len(sys.argv) == 1 or int(sys.argv[1]) == 0:
print('')
print('=================')
print('Running test 0')
print('=================')
os.system('flake8 --ignore "N801, E203, E266, E501, W503, F812, E741, N803, N802, N806" minitorch/ tests/ project/')
if len(sys.argv) == 1 or int(sys.argv[1]) == 1:
print('')
print('=================')
print('Running test 1')
print('=================')
os.system('python -m pytest tests/ -m task2_1')
if len(sys.argv) == 1 or int(sys.argv[1]) == 2:
print('')
print('=================')
print('Running test 2')
print('=================')
os.system('python -m pytest tests/ -m task2_2')
if len(sys.argv) == 1 or int(sys.argv[1]) == 3:
print('')
print('=================')
print('Running test 3')
print('=================')
os.system('python -m pytest tests/ -m task2_3')
if len(sys.argv) == 1 or int(sys.argv[1]) == 4:
print('')
print('=================')
print('Running test 4')
print('=================')
os.system('python -m pytest tests/ -m task2_4')