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 specs2 test from within IDEA pants project #289

Closed
allengeorge opened this issue Apr 5, 2017 · 3 comments
Closed

Cannot run specs2 test from within IDEA pants project #289

allengeorge opened this issue Apr 5, 2017 · 3 comments

Comments

@allengeorge
Copy link

IDEA has a nifty feature where you can right-click and select "Run as..." for a test. Once I migrated my project to a pants-based project I can't do that anymore.

@wisechengyi
Copy link
Collaborator

Any example I can try on?

@wisechengyi
Copy link
Collaborator

@allengeorge what exact error are you seeing? For me IntelliJ was able to recognize and generate a specs2 configuration like below:
screen shot 2017-04-25 at 2 28 23 pm

However Pants may have trouble exporting some classpath causing ClassNotFound

Example from pantsbuild/pants#4516, examples/tests/scala/org/pantsbuild/example/specs2/HelloWorldSpec.scala

@wisechengyi
Copy link
Collaborator

Just added an example how specs2 should work with Pants pantsbuild/pants#4516

Feel free to open the issue if it does not work for you even after conforming to the example.

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

No branches or pull requests

2 participants