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

  1. Open the MXUnit View
  2. Click the "Search" icon (or hit CTRL-F)
  3. type "PluginDemoTests". Click OK
  4. It'll take a few seconds to start up if this is the first time running the tests.
    1. You'll then get an eclipse Error. This is expected, because InvalidMarkupTest.cfc is a bad file.
    2. Click OK on the error message.
    3. Each of the test cases in the entire directory of tests will load into the tree. It does not run the tests.
  5. Click the green "Play" button (or hit Enter)
  6. The tests will run.
  7. 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".
  8. To run all tests again, hit the green play arrow
  9. To run just the failures, hit the red play arrow
  10. To show just the failures in the tree, click the "Filter" icon in the view, or hit "f". Hit "f" again to unfilter.
  11. To clear all results, click the "refresh" icon or hit "F5"