Skip to content

Commit c7bdc33

Browse files
gamlerhartlefou
authored andcommitted
Fix Android Example Tests (com-lihaoyi#4785)
The tests now run concurrently with workers, therefore the `out.json` is separated per worker. Pull request: com-lihaoyi#4785
1 parent f0a0cd7 commit c7bdc33

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

example/android/javalib/1-hello-world/build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ object app extends AndroidAppModule {
108108
> ./mill show app.test
109109
...compiling 2 Java source...
110110

111-
> cat out/app/test/testForked.dest/out.json
111+
> cat out/app/test/testForked.dest/worker-0/out.json
112112
["",[{"fullyQualifiedName":"com.helloworld.ExampleUnitTest.textSize_isCorrect","selector":"com.helloworld.ExampleUnitTest.textSize_isCorrect","duration":...,"status":"Success"}]]
113113

114114
*/

example/android/javalib/1-hello-world/ignoreErrorsOnCI

Whitespace-only changes.

example/android/kotlinlib/1-hello-kotlin/build.mill

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ object app extends AndroidAppKotlinModule {
105105

106106
/** Usage
107107

108-
> ./mill show app.test
108+
> ./mill -j 1 show app.test
109109
...Compiling 2 Kotlin sources...
110110

111-
> cat out/app/test/testForked.dest/out.json
111+
> cat out/app/test/testForked.dest/worker-0/out.json
112112
["",[...{"fullyQualifiedName":"com.helloworld.ExampleUnitTest.text_size_is_correct","selector":"com.helloworld.ExampleUnitTest.text_size_is_correct","duration":...,"status":"Success"}...]]
113113

114-
> cat out/app/test/testForked.dest/out.json
114+
> cat out/app/test/testForked.dest/worker-0/out.json
115115
["",[...{"fullyQualifiedName":"com.helloworld.ExampleUnitTestInKotlinDir.kotlin_dir_text_size_is_correct","selector":"com.helloworld.ExampleUnitTestInKotlinDir.kotlin_dir_text_size_is_correct","duration":...,"status":"Success"}...]]
116116

117117
*/

example/android/kotlinlib/1-hello-kotlin/ignoreErrorsOnCI

Whitespace-only changes.

0 commit comments

Comments
 (0)