Skip to content

jasmine/IdeaJasmine

Repository files navigation

Jasmine IntelliJ Plugin CircleCI

This adds a new run configuration to IntelliJ (and IntelliJ based IDEs) that runs Jasmine and displays the results in the test console.

Usage

Installation

  1. 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
  2. Restart your IDE

Configure

  1. In the "Run" menu, click on "Edit Configurations", there should be a new "Jasmine" default configuration
  2. Click the "+" to add a new configuration and select "Jasmine" as the template
  3. Fill in your Node.js interpreter and select the correct Jasmine package and set any other options you want
  4. Run your tests!

Development

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

Building

Build the plugin with:
./gradlew build

The distribution zip will be available at build/distributions/IdeaJasmine-{version}.zip

Testing

Run IntelliJ IDEA with this plugin installed:
./gradlew runIde