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

IOSuite test suite extended by MockFactory (scalamock) never executes #640

Open
DenisNovac opened this issue Mar 12, 2023 · 3 comments
Open

Comments

@DenisNovac
Copy link

Weaver version: "0.8.1"
Scalamock version: "5.2.0"

In build.sbt:

testFrameworks += new TestFramework("weaver.framework.CatsEffect")

Example code:

class MySpec(global: GlobalRead) extends IOSuite with LowPriorityImplicits with MockFactory { 
   test("test") { _ => expect(true) }
}

Test "test" will never be called while suite is extended by MockFactory. If you remove with MockFactory - it will work fine.

@Baccata
Copy link
Contributor

Baccata commented Mar 13, 2023

Hi. Thanks for raising an issue for visibility.

In all frankness and at the risk of disappointing you, this is not something that I will dedicate time to investigate. If you find the root cause of the issue, and a potential fix, I'll happily look at a PR though :)

@DenisNovac
Copy link
Author

Hello, sure, it's ok, i was just wondering if anyone already had similar problem and fixed it somehow.

@DenisNovac
Copy link
Author

As a workaround i used MockitoCats from mockito-scala instead of ScalaMock. This library doesn't depend on scala's test frameworks so it worked out for me.

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