Skip to content

Make java-test output more useful #85478

@stuartmorgan-g

Description

@stuartmorgan-g

Currently it appears that the output from java-test (or just running the tests manually) is a ton of Gradle build output, but nothing at all that actually indicates that any tests ran. I'm not sure if we can do anything about making the former less chatty, but for the latter it sounds like maybe we can enable logging like what I think of as normal unit test logging (Google Test, XCTest, etc.) by doing something like (untested; just based on quick searching online) in the example gradle files:

test {
    testLogging {
        events "started" "passed", "skipped", "failed"
    }
}

Not having auditability of what ran is a significant issue since I've found a number of cases in the past several months via log inspection where we weren't actually running the tests we though we were (not Java unit tests specifically, just in general across the repo). If the logs don't have anything we can compare against what we think is running, then we just won't know if we're accidentally not running something.

/cc @blasten @bparrishMines

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.packageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions