mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-03-21 17:54:09 -05:00
12 lines
301 B
Python
12 lines
301 B
Python
import os.path
|
|
import webbrowser
|
|
|
|
from invoke import task
|
|
|
|
@task
|
|
def run_unit_tests(c):
|
|
print("Running unit tests...")
|
|
with c.prefix("cd test"):
|
|
c.run("coverage run -m unittest discover")
|
|
c.run("coverage html")
|
|
webbrowser.open(os.path.abspath("test/index.html"), new=2) |