Running Demo Tests
The MXUnit framework distribution comes with a directory named "PluginDemoTests". These are a set of tests designed to showcase various functionality in this Plugin. They are NOT meant in any way as an example of how to write test!
Important: This assumes you have configured a project in Eclipse for the MXunit framework. The plugin cannot run tests that are not part of configured Eclipse projects.
To run the tests
- Open the MXUnit View
- Click the "Search" icon (or hit CTRL-F)
- type "PluginDemoTests". Click OK
- It'll take a few seconds to start up if this is the first time running the
tests.
- You'll then get an eclipse Error. This is expected,
because InvalidMarkupTest.cfc is a bad file.
- Click OK on the error message.
- Each of the test cases in the entire directory of tests will load
into the tree. It does not run the tests.
- Click the green "Play" button (or hit Enter)
- The tests will run.
- To see any output from the tests, right click in the tree and select
"Open test case results in browser". or hit "F8". or hit "b".
- To run all tests again, hit the green play arrow
- To run just the failures, hit the red play arrow
- To show just the failures in the tree, click the "Filter" icon in the view, or hit "f". Hit "f" again to unfilter.
- To clear all results, click the "refresh" icon or hit "F5"