-
Notifications
You must be signed in to change notification settings - Fork 100
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
Mixing MockFactory into AsyncFunSpec results in empty test suite #156
Comments
still an issue in 3.4 |
Any possibility of a workaround for scalatest 2.2.6? |
I came up with a workaround that, though not ideal, does at least allow running async tests with mocks, e.g.:
|
@evictor thanks, that's useful info. |
+1 |
+1 Intellij/SBT do not even report it as an issue, the tests just do not run. Removed Thanks @evictor for the temporary workaround. |
Just discovered there's I noticed that there are some ongoing issues for AsyncMockFactory. Is that the reason for it not being documented (still experimental?) in the Readme and/or User Guide? If not, I might be able to help update the documentation. |
Hi @daniel-shuy I have changed the documentation over to use the builtin Jekyll process of GH pages, and a pull request against the gh-pages branch would be very welcome, especially with some nice Async examples if you got any :) 👍 |
@jgraniero @evictor , could you confirm this as well - can we close this issue? |
I'm on version 3.0.1 of scalatest for Scala 2.11 and do not see |
@evictor can you try using ScalaMock 3.5.0 please? |
Roger. Sorry, yea, I was using 3.4.2 of ScalaMock. I changed to 3.5.0 and codebase seems to be working fine with the new |
Thanks for confirming this! |
Thanks! |
I see this behaviour with The workaround posted above works for me. |
scalatest 3.0.0
scalamock 3.3.0
Hoping there's some workaround for this or I'm just missing something.
I've tried running the test a few different ways. It seems like Intellij and Gradle are both reporting an empty test suite.
If I replace
AsyncFunSpec
withFunSpec
the test fails as expected.I also found this issue over in the scalatest repo. Not sure where the problem lies, though I can confirm that the "async" specs work fine so long as
MockFactory
isn't mixed in. If you find this is an issue with scalatest, I'm happy to go give them more context on the issue I linked.The text was updated successfully, but these errors were encountered: