This adds a new run configuration to IntelliJ (and IntelliJ based IDEs) that runs Jasmine and displays the results in the test console.
- In your IDE preferences, go to the "Plugins" node
- You can install it directly from jetbrains
- Or download from release page and "Install plugin from disk"
- If you really want to be on the cutting edge, you can download the build artifact from the latest build on Circle CI
- Restart your IDE
- In the "Run" menu, click on "Edit Configurations", there should be a new "Jasmine" default configuration
- Click the "+" to add a new configuration and select "Jasmine" as the template
- Fill in your Node.js interpreter and select the correct Jasmine package and set any other options you want
- Run your tests!
This plugin uses the Gradle IntelliJ Plugin for downloading IntelliJ dependencies and packaging.
The code for the plugin is written in Kotlin
Local builds expect to be run on JDK-17, but higher might also work. Managing multiple Java versions is possible with something like SDKMan
Build the plugin with:
./gradlew build
The distribution zip will be available at build/distributions/IdeaJasmine-{version}.zip
Run IntelliJ IDEA with this plugin installed:
./gradlew runIde