DeathGarden_API_Rebirth/tasks.py
2023-07-12 16:30:15 +02:00

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)