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

Fork doesn't run any instrumented tests #152

Open
vasdeepika opened this issue May 21, 2019 · 0 comments
Open

Fork doesn't run any instrumented tests #152

vasdeepika opened this issue May 21, 2019 · 0 comments

Comments

@vasdeepika
Copy link

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
//}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant