Skip to content

Commit a014695

Browse files
committed
The test runner now accepts an arg --start-node-server to boot up a node server.
The server uses the test config, and is mostly of use for debugging weirdness. `python runtests.py --start-node-server`
1 parent 8d28241 commit a014695

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
from django_node import npm
1717
npm.install(os.path.join(os.path.dirname(__file__), 'tests'))
1818

19+
if '--start-node-server' in sys.argv:
20+
from django_node.server import server
21+
server.start(blocking=True)
22+
sys.exit('Node server exited')
23+
1924
TestRunner = get_runner(settings)
2025
test_runner = TestRunner()
2126
failures = test_runner.run_tests(['tests'])

0 commit comments

Comments
 (0)