With an http server made in nodejs can I have it run another nodejs module like jasmine-node, that normally runs in command line, output to the web?
Trying to run jasmine tests from browser instead of command line, new to nodejs.
With an http server made in nodejs can I have it run another nodejs module like jasmine-node, that normally runs in command line, output to the web?
Trying to run jasmine tests from browser instead of command line, new to nodejs.
you could have 2 node instances. One the http server and the second instance the command line instance to run jasmine. The http server instance would spawn the command line instance. Then you could register a GET route on the http server such as someexample.com/runtests which would call the tests and wait for the tests to finish and respond with the console output. This is sort of unorthodox, but there wouldn't be a direct way to run command line applications through the browser without modifying their source.