We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running Scalatest integration tests for Play2 using the scalatestplus API assets are not correctly hosted. Test run correctly from CLI sbt.
This appears to be because the test classpath does not include the assets folder as it does when running within sbt.
Steps to reproduce:
git clone [email protected]:rgladwell/scalaide-scalatest-play-integration.git
sbt eclipse
Expected result: tests should pass as they do when you execute sbt test from the command line.
sbt test
Actual result: Tests fail as the started Scalatest server is not correctly hosting the assets (404 was not equal to 200)
404 was not equal to 200
Workaround: http://stackoverflow.com/a/25051844/48611
The workaround (adding the assets folder to the test classpath) should be automatically done by the Scala IDE Play plugin though.
Test case project: https://github.com/rgladwell/scalaide-scalatest-play-integration
The text was updated successfully, but these errors were encountered:
Have you tried adding the assets folder to the source path?
Sorry, something went wrong.
No branches or pull requests
When running Scalatest integration tests for Play2 using the scalatestplus API assets are not correctly hosted. Test run correctly from CLI sbt.
This appears to be because the test classpath does not include the assets folder as it does when running within sbt.
Steps to reproduce:
git clone [email protected]:rgladwell/scalaide-scalatest-play-integration.git
)sbt eclipse
Expected result: tests should pass as they do when you execute
sbt test
from the command line.Actual result: Tests fail as the started Scalatest server is not correctly hosting the assets (
404 was not equal to 200
)Workaround: http://stackoverflow.com/a/25051844/48611
The workaround (adding the assets folder to the test classpath) should be automatically done by the Scala IDE Play plugin though.
Test case project: https://github.com/rgladwell/scalaide-scalatest-play-integration
The text was updated successfully, but these errors were encountered: