![]() ![]() I can't really change the output of Logcat, though - else the IDE reporting and other places would start to look messy again. ) = File(outputDir, "logcat- $testPackageAndClass- $testMethod.txt ").absolutePath // <- !! TempLogcatWriter = tempLogcatFile.outputStream().bufferedWriter() Val tempFileName = generateLogcatFileName(testPackageAndClass, testMethod) // <- !! Val testPackageAndClass = testPackageClassAndMethodNames.removeSuffix( ") ") Val testPackageClassAndMethodNames = line.split( "TestRunner: started: ").split( "( ") Related android-test issue: android/android-test#1314 I would configure it to - to prevent this error. When running the same on Mac (CI) I get the full name: build/outputs/androidTest-results/connected/test(AVD) - 10/.ColorUtilsKtTest-replaceAlphaFrom: Adds only alpha.txt, but when trying to upload artifacts I get an error because of the "invalid" character: Īt this point I would like to ask to make it configurable what the joiner characters are, e.g. You can see this in action, because build/outputs/androidTest-results/connected/API_29(AVD) - 10/.ColorUtilsKtTest-replaceAlphaFrom file name is truncated at the :, and actually there's only 1 file, not 3. ![]() This is on Windows, where there are reserved characters in file names (see also wiki. When running on AGP 7.1 ( gradlew :feature:base:connectedCheck) there are some new features to dump the logcat and other files, see what is the output here: I've identified this line to be responsible: I have the same structure in src/test/kotlin too, that looks like this:Īt this point I can see that there's a limitation of nesting test containers in androidTest and you worked around it by concat-ing. ![]() When running them in Android Studio I get Val result = it.receiver.replaceAlphaFrom(it.param) Val useCase : val receiver : val param : val expected : fun replaceAlphaFrom() = listOf( ![]()
0 Comments
Leave a Reply. |