typelevel / typelevel/weaver-test
IOSuite test suite extended by MockFactory (scalamock) never executes
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 85
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
This issue was copied over from: https://github.com/disneystreaming/weaver-test/issues/640
It was opened by: DenisNovac
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the build.sbt testFrameworks configuration and the MySpec example using IOSuite, CatsEffect, LowPriorityImplicits, and MockFactory. Reproduce it with Weaver 0.8.1 and Scalamock 5.2.0, comparing the suite with and without MockFactory; done means the test is discovered and executes when MockFactory is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100