-
Notifications
You must be signed in to change notification settings - Fork 121
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
Fix test running in IntelliJ UI by resolving ScalaTest 3.1 vs 3.2 conflict #4286
Merged
tonytw1
merged 1 commit into
guardian:main
from
eelpie:20240613-restore-tests-in-intellij
Jul 26, 2024
Merged
Fix test running in IntelliJ UI by resolving ScalaTest 3.1 vs 3.2 conflict #4286
tonytw1
merged 1 commit into
guardian:main
from
eelpie:20240613-restore-tests-in-intellij
Jul 26, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tonytw1
changed the title
Fix test running in IntelliJ UI by resolving ScalaTest 3.1 vs 3.2 flict
Fix test running in IntelliJ UI by resolving ScalaTest 3.1 vs 3.2 conflict
Jun 13, 2024
CI passes after rebasing to pickup recent docker image during tests changes. |
tonytw1
force-pushed
the
20240613-restore-tests-in-intellij
branch
from
June 13, 2024 21:32
1772477
to
bce9bc4
Compare
…flict. Downgrade "org.scalatestplus" %% "mockito-3-4" to 3.1 series to match the 3.1 ScalaTest pulled in by scalatestplus-play. Resolves a scalac -deprecation snag which breaks running of tests in IntelliJ. Warns about a deprecation on .right.value but then doesn't know about the new method because ScalaTest 3.2 is not available on the IntelliJ classpath. This commit works by pushing the transitive ScalaTest from "org.scalatestplus" %% "mockito-3-4" back down to 3.1 for compatibility with "scalatestplus-play". Notably "scalatestplus-play" cannot be leveled to 6.0.0 / ScalaTest 3.2 without moving to Scala 2.13 because it has not been released for 2.12.
tonytw1
force-pushed
the
20240613-restore-tests-in-intellij
branch
from
June 25, 2024 08:26
bce9bc4
to
9086e36
Compare
andrew-nowak
approved these changes
Jul 26, 2024
prout-bot
added
Pending-on-cropper
Pending-on-leases
Pending-on-media-api
Pending-on-image-loader
Pending-on-metadata-editor
Pending-on-collections
Pending-on-usage
Pending-on-kahuna
Pending-on-auth
Pending-on-thrall
Seen-on-auth
Seen-on-leases
Seen-on-usage
and removed
Pending-on-cropper
Pending-on-leases
Pending-on-media-api
Pending-on-image-loader
Pending-on-metadata-editor
Pending-on-usage
Pending-on-kahuna
Pending-on-auth
labels
Jul 26, 2024
Seen on auth, usage, image-loader, metadata-editor, leases, cropper, media-api, kahuna (merged by @tonytw1 25 minutes and 35 seconds ago) Please check your changes! |
Seen on collections (merged by @tonytw1 25 minutes and 43 seconds ago) Please check your changes! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this change?
Fixes this error when trying to run a single test in the IntelliJ IDE:
Downgrade "org.scalatestplus" %% "mockito-3-4" to 3.1 series to match the 3.1 ScalaTest pulled in by scalatestplus-play.
Resolves a scalac -deprecation snag which breaks running of tests in IntelliJ. Warns about a deprecation on .right.value but then doesn't know about the new method because ScalaTest 3.2 is not available on the IntelliJ classpath.
This commit works by pushing the transitive ScalaTest from "org.scalatestplus" %% "mockito-3-4" back down to 3.1 for compatibility with "scalatestplus-play".
Notably "scalatestplus-play" cannot be leveled to 6.0.0 / ScalaTest 3.2 without moving to Scala 2.13 because it has not been released for 2.12.
How should a reviewer test this change?
How can success be measured?
Single tests can be run in the IDE. Faster feedback loop. Prevent the urban myth that you can't run tests in the IDE from taking hold.
Who should look at this?
Tested? Documented?