Skip to content

Commit

Permalink
Unit tests - specify variant for every module
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Renaud committed Nov 29, 2022
1 parent 24f0f1d commit b8b8da9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
# Enrich gradle.properties for CI/CD
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
# Tchap: limit to 2 maximum workers (github VM limit)
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon

jobs:
tests:
name: Runs all tests
# Tchap: run on macos-latest VM
runs-on: macos-latest
strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion coverage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ task generateCoverageReport(type: JacocoReport) {
task unitTestsWithCoverage(type: GradleBuild) {
// the 7.1.3 android gradle plugin has a bug where enableTestCoverage generates invalid coverage
startParameter.projectProperties.coverage = [enableTestCoverage: false]
tasks = ['testDebugUnitTest']
// Tchap: Specify variant for every module
tasks = [':matrix-sdk-android:testDebugUnitTest', ':vector:testGplayBtchapWithoutvoipWithoutpinningDebugUnitTest', ':vector-app:testGplayBtchapWithoutvoipWithoutpinningDebugUnitTest', ':vector-config:testBtchapDebugUnitTest']
}

task instrumentationTestsWithCoverage(type: GradleBuild) {
Expand Down

0 comments on commit b8b8da9

Please sign in to comment.