Skip to content

excludeTestsMatching does not work #81

@JLLeitschuh

Description

@JLLeitschuh

I was attempting to exclude some tests from Scalatest and quickly realized that this did not work:

val test = tasks.named("test", Test::class) {
    filter {
        excludeTestsMatching("*IntegTest")
        excludeTestsMatching("*IntegSpec")
        excludeTestsMatching("*.thirdpartyInteg.*")
    }
}

It seems that the excluded patterns aren't currently taken into account by this plugin, only the includePatterns are.
https://github.com/maiflai/gradle-scalatest/blob/master/src/main/groovy/com/github/maiflai/ScalaTestAction.groovy#L159

Does Scalatest support excluding specific tests? If so, is there a quick way I can add this support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions