Skip to content

Custom runnerBuilder breaks logcat capture #1314

@TWiStErRob

Description

@TWiStErRob

Description

Using testInstrumentationRunnerArguments["runnerBuilder"] allows invalid characters in test names.

For more info see mannodermaus/android-junit5#263

A related causal problem on AGP: https://issuetracker.google.com/issues/223643506

Steps to Reproduce

  1. Clone https://github.com/TWiStErRob/repros/tree/master/agp/junit5-logcat-filenames
  2. Run gradlew :app:connectedCheck

Actual Results

logcat output with invalid characters, file name is truncated, file is empty.

Expected Results

logcat output in build folder and/or a failure when using the custom runner builder when it returns ":" in the test name.

AndroidX Test and Android OS Versions

3.4.0 / 1.4.0, any OS

Link to a public git repo demonstrating the problem:

https://github.com/TWiStErRob/repros/tree/master/agp/junit5-logcat-filenames

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions