Running Directories of Tests
How
With MXUnit, it's easy to set up a single file that runs all your tests
- In your editor, create a new file called "run.cfm" (or whatever) in the top-level directory where your components live
- Open the /mxunit/tests/run.cfm file and copy the contents
- Paste those contents into your new run.cfm file
- Modify the "excludes" and "componentPath" attributes to their appropriate values
- Open that file in your web browser
- NOTE: you can pass &output=[html|extjs] and &debug=[true|false] as URL parameters
Example
Your tests live at c:\inetpub\wwwroot\MyApp\cfc\test
Create c:\inetpub\wwwroot\MyApp\cfc\test\run.cfm
Copy/Paste the contents from /mxunit/tests/run.cfm into your run.cfm file
Change excludes to exludes=""
change componentPath to componentPath="myapp.cfc.test"
Open the file in your browser