Jasmine Test Runner
Jasmine Test Runner allows you to run Jasmine unit tests from right inside of your WordPress admin area.
Jasmine Test Runner allows you to run Jasmine unit tests from right inside of your WordPress admin area.
Screenshots & previews.
You can use the built in installer and upgrader, or you can install the plugin manually.
From your WordPress dashboard
- 01Visit ‘Plugins > Add New’
- 02Search for ‘Jasmine Test Runner’
- 03Activate Jasmine Test Runner from your Plugins page.
From WordPress.org
- 04Download Jasmine Test Runner.
- 05Upload the .zip file in the ‘Plugins > Add New’ page, or copy the unzipped directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
- 06Activate Jasmine Test Runner from your Plugins page.
Once Activated
You can begin running your Jasmine tests as needed. Just add a query arg to your URL like this:
?jtrunner=/path/to/tests
Path/to/tests can have a leading or a trailing slash for the directory. This directory is relative to /wp-content/ directory, so that themes and plugins can utilize the test runner. The directory should contain only your jasmine tests as it will enqueue all *.js files located in that directory.