Skip to content

Test discovery breaks when running into classes/objects which are not valid Tests #104

Open
@rayalex

Description

@rayalex

Describe the bug
When adding utility classes/objects to test source sets, the plugin tries to scan them for tests but fails with:

class co.helmethair.scalatest.runtime.Discovery cannot access a member of class ***SomeHelper$ with modifiers "private"

To Reproduce

object SomeHelper extends MockFactory {
  def something(...)
}

placed under src/test/scala/{package} causes the above to be recognized as the test and fail.

Expected behavior
Such classes should be ignored.

Screenshots
N/A

Build/Test environment:

  • Gradle 7
  • Scala 2.12
  • Scalatest 3.2.15

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions