Fixed call to test file
This commit is contained in:
parent
f129a36099
commit
8a582e7a0f
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import coverage
|
import coverage
|
||||||
import subprocess
|
import os
|
||||||
|
|
||||||
RED = "\033[31m"
|
RED = "\033[31m"
|
||||||
GREEN = "\033[32m"
|
GREEN = "\033[32m"
|
||||||
YELLOW = "\033[33m"
|
YELLOW = "\033[33m"
|
||||||
NORMAL = "\033[0m"
|
NORMAL = "\033[0m"
|
||||||
|
|
||||||
PERCENTAGE = 95
|
PERCENTAGE = 95
|
||||||
|
|
||||||
cov = coverage.Coverage(
|
cov = coverage.Coverage(
|
||||||
|
@ -15,7 +16,7 @@ cov = coverage.Coverage(
|
||||||
|
|
||||||
cov.start()
|
cov.start()
|
||||||
print(YELLOW + "Running Tests..." + NORMAL)
|
print(YELLOW + "Running Tests..." + NORMAL)
|
||||||
subprocess.check_output(["manage.py", "test"])
|
os.system('manage.py test')
|
||||||
cov.stop()
|
cov.stop()
|
||||||
|
|
||||||
print(YELLOW + "Collecting Coverage..." + NORMAL)
|
print(YELLOW + "Collecting Coverage..." + NORMAL)
|
||||||
|
|
Reference in a new issue