Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run test file in IDEA 2021.1 #345

Closed
mr-git opened this issue Apr 8, 2021 · 3 comments · Fixed by #769
Closed

Cannot run test file in IDEA 2021.1 #345

mr-git opened this issue Apr 8, 2021 · 3 comments · Fixed by #769

Comments

@mr-git
Copy link

mr-git commented Apr 8, 2021

When attempting to run unit-test file TestSpec like described in https://scalameta.org/munit/docs/getting-started.html#run-tests-in-intellij, IDEA shows red error message, like:

Error running 'TestSpec':
com/intellij/rt/junit/JUnitStarter

image

When run from SBT with test or testOnly *TestSpec* - all works as expected.

Maybe latest IDEA changed something in unit-test starter?

@olafurpg
Copy link
Member

olafurpg commented Apr 8, 2021

Thank you for reporting! This looks like an IntelliJ regression since nothing changed on the MUnit side. Can you report to YouTrack instead?

@mr-git
Copy link
Author

mr-git commented Apr 8, 2021

@mr-git
Copy link
Author

mr-git commented Apr 8, 2021

it was not obvious - JUnit plugin has to be enabled for this to work.

It might be good to amend the web-site to mention that plugin must be enabled.
To speed up loading of IDEA, I've disabled all non-required plugins, somehow ScalaTest tests were working just find without it, I guess support for them is embedded in Scala plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants