-
Notifications
You must be signed in to change notification settings - Fork 57
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
Specs2 support #85
Specs2 support #85
Conversation
ultrasecreth
commented
Mar 10, 2019
- Adds support for specs2
- Extract Scalatest specific code to it's own module
- Adds support for Scalatest AsyncSpec (ScalaTest AsyncWordSpec and wasCalled #57)
- Code improvements
- Minor bug fixes
- Minor features added
beaf897
to
4e212d7
Compare
core/src/main/scala/org/mockito/integrations/scalatest/IdiomaticMockitoFixture.scala
Outdated
Show resolved
Hide resolved
specs2/src/main/scala/org/mockito/specs2/HamcrestMatcherAdapter.scala
Outdated
Show resolved
Hide resolved
specs2/src/test/scala/org/mockito/specs2/MockitoScalaSpec.scala
Outdated
Show resolved
Hide resolved
specs2/src/test/scala/org/mockito/specs2/MockitoScalaSpec.scala
Outdated
Show resolved
Hide resolved
specs2/src/test/scala/org/mockito/specs2/MockitoScalaSpec.scala
Outdated
Show resolved
Hide resolved
specs2/src/test/scala/org/mockito/specs2/MockitoScalaSpec.scala
Outdated
Show resolved
Hide resolved
specs2/src/test/scala/org/mockito/specs2/MockitoScalaSpec.scala
Outdated
Show resolved
Hide resolved
d63e835
to
c91a740
Compare
@mockitoguy this PR adds 2 new artefacts (mockito-scala-scalatest & mockito-scala-specs2), similar idea to mockito-junit-jupiter, would this be a problem with how the current publishing works? or just merging the PR and letting shipkit works its magic would be enough? - Thanks! |
… rather than just the mocked class only
…re (even the current tests)
…compatible.Assertion rather than Unit, this allows a verify line to be the last one in an Async test
… eqTo directly defaultMatcher relies on the DefaultMatcher[T] type class, so the actual matcher to be used can be overridden by the user or any framework extension
…zy arg was evaluated twice
3716c0d
to
34971a4
Compare
No problem pushing multiple artifacts. Shipkit handles this (Mockito does it). Are you sure you want to ship different versions? It is non standard and may increase entropy. Why don't we ship beta version for all artifacts? I realize that it would not be 100% correct but you get simplicity in return :) If you are really keen on different versions, changes in Shipkit may be needed (there's only one way to find out...) |
@mockitoguy Cool, I'll try and see what happens :) worst case scenario the beta one will not be released at all! |