Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.93 KB

contributing.md

File metadata and controls

38 lines (26 loc) · 1.93 KB

Contributing

Importing the build into IntelliJ

This codebase is primarily developed with VS Code but it's possible to work on this codebase with IntelliJ. There are a few quirks when importing the build into IntelliJ since MUnit is cross-compiled against multiple platforms (JVM, JavaScript and Native).

  • Use "Open or import" and select the MUnit directory.

  • If prompted to select import via sbt or bsp, select sbt.

    Screenshot 2020-08-30 at 08 17 39

  • If you get a "No scalac found to compile scala sources" error, you may need to manually add Scala SDK 2.13.3 to the junit module.

    Screenshot 2020-08-30 at 08 18 56 Screenshot 2020-08-30 at 08 20 26

  • If you get a "Class not found" error when running tests, you may need to manually edit the run configuration to use the testsJVM module instead of tests-sources.

    Screenshot 2020-08-30 at 08 20 51 Screenshot 2020-08-30 at 08 21 06

  • There may be highlighting errors for PlatformCompat and BuildInfo. You can ignore these highlighting errors, the project should still compile successfully.

If everything is setup correctly, you should be able to run tests and debug via IntelliJ like normal:

Screenshot 2020-08-30 at 08 21 21

Please ask on Gitter if you have any issues working on the MUnit codebase via IntelliJ.