添加了windows下的runserver和runtest脚本 [ci sikp]
This commit is contained in:
5
tools/runserver.cmd
Normal file
5
tools/runserver.cmd
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
python manage.py runserver
|
||||||
|
cls
|
||||||
|
cd..
|
||||||
|
python manage.py runserver
|
||||||
12
tools/runtest.cmd
Normal file
12
tools/runtest.cmd
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
@echo off
|
||||||
|
coverage run --source='.' manage.py test
|
||||||
|
coverage html
|
||||||
|
cd htmlcov
|
||||||
|
index.html
|
||||||
|
cls
|
||||||
|
cd..
|
||||||
|
coverage run --source='.' manage.py test
|
||||||
|
coverage html
|
||||||
|
cd htmlcov
|
||||||
|
index.html
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
coverage run --source='.' manage.py test
|
coverage run --source='.' manage.py test
|
||||||
nose html
|
coverage html
|
||||||
open htmlcov/index.html
|
open htmlcov/index.html
|
||||||
|
|||||||
Reference in New Issue
Block a user