Running Single Tests in the Browser
You can run individual test cases directly in the browser. In addition, you can execute single methods in that test case. There are several URL parameters you can pass to change the behavior and appearance when running tests:
- TestMethod: &TestMethod=testSomething
- debug: &debug=true
- output: &output=extjs
Using mxunit/PluginDemoTests/HodgePodgeTest.cfc as the example
- In the browser, run http://localhost/mxunit/PluginDemoTests/HodgePodgeTest.cfc?method=RunTestRemote
- This will run all tests in that file
- To run a single test:
- http://localhost/mxunit/PluginDemoTests/HodgePodgeTest.cfc?method=RunTestRemote&TestMethod=testNotEquals
- To see the raw dump of the test results:
- http://localhost/mxunit/PluginDemoTests/HodgePodgeTest.cfc?method=RunTestRemote&TestMethod=testNotEquals&debug=true
- To view the results in a nice Grid:
- http://localhost/mxunit/PluginDemoTests/HodgePodgeTest.cfc?method=RunTestRemote&TestMethod=testNotEquals&output=extjs
Next: Running directories of tests