Skip to content

Commit 3956145

Browse files
committed
fix(tests): making test code sharable to other modules
1 parent 0c9a293 commit 3956145

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

AndroidSDKTests/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,15 @@ dependencies {
3838
testCompile 'org.powermock:powermock-api-mockito:1.6.6'
3939
testCompile 'org.powermock:powermock-classloading-xstream:1.6.6'
4040
testCompile 'org.bouncycastle:bcmail-jdk15on:1.54'
41+
}
42+
43+
task jarTests(type: Jar, dependsOn: "assembleDebugUnitTest") {
44+
classifier = 'tests'
45+
from "$buildDir/intermediates/classes/test/debug"
46+
}
47+
configurations {
48+
unitTestArtifact
49+
}
50+
artifacts {
51+
unitTestArtifact jarTests
4152
}

0 commit comments

Comments
 (0)