Skip to content

IOException when test task is excluded #81

Closed
@igor-levoniuk

Description

@igor-levoniuk

On gradle 4.8.1+ if I do the below on my build, so that test are not ran twice

test { onlyIf { ! gradle.taskGraph.hasTask(testScoverage) } }

it starts to fail whenever scoverage tasks are part of task graph:

> Task :compileTestScala UP-TO-DATE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE

FAILURE: Build failed with an exception.

* What went wrong:
java.io.IOException: Bad pathname
> Bad pathname

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions