Launch your IntelliJ IDE from your host OS.
- Locate your
nix developinstalled JDK path location from the header printout on enteringnix develop($JAVA_HOME is printed to stdout on enteringnix develop).- e.g. On macOS this could look like
/nix/store/l4b6n5yhxcs3ys5s7kia7ch23dp8zyzq-zulu-ca-jdk-25.0.0/Library/Java/JavaVirtualMachines/zulu-25.jdk/Contents/Home.
- e.g. On macOS this could look like
- File -> Project Structure -> Platform Settings -> SDKs -> Add JDK...
- Setup IntelliJ in Gradle perspective -> Gradle Settings (Wrench Icon) -> Run tests with -> IntelliJ IDEA
- Locate your test file in IDE (e.g.
backend/src/test/java/com/odde/doughnut/controllers/RestNoteControllerTests.java).- Locate specific test method to run and look out for green run arrow icon in line number gutter.
- Click on the green run arrow icon to kick off incremental build and single test run.



