Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Fork doesn't run any instrumented tests #152

@vasdeepika

Description

@vasdeepika

Hi,
I have configured Fork to run my tests. When I run the fork task I don't see any instrumented tests running. Can you help me what's wrong?
I am running the below task:
./gradlew fork -PtestSize=large --debug --stacktrace --no-build-cache -Dorg.gradle.parallel=false --no-daemon --configure-on-demand '-Dorg.gradle.jvmargs=-Xmx8g -XX:MaxPermSize=512m'
I have given the correct ancestor path to the testPackage and all of my test classes end with "xxxTest".

Here is my config looks like:
In main build.gradle
dependencies {
...
...
// classpath "com.jaredsburrows:gradle-spoon-plugin:1.5.0"
classpath 'com.shazam.fork:fork-gradle-plugin:3.7.0'
}

In app build.gradle file:
apply plugin: 'com.shazam.fork'
...
...
fork {
title = "Automation tests"
testPackage = "com.mycomp.test"
fallbackToScreenshots = true
if (project.hasProperty('coverage')) {
isCoverageEnabled = true
}
if (project.hasProperty('testSize')) {
testSize = project.testSize
}
poolingStrategy {
manual {
groupings {
emulators = [".*-5556"]
}
}
}
}

//spoon {
// debug = true
//// grantAllPermissions = true
// if (project.hasProperty('spoonClassName')) {
// className = project.spoonClassName
// }
// if (project.hasProperty('testSize')) {
// testSize = project.testSize
// }
// noAnimations = true
//
// clearAppDataBeforeEachTest = true
//
// if (project.hasProperty('coverage')) {
// codeCoverage = true
// singleInstrumentationCall = true
// }
// grantAll = true
//}

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