tree: 4be822580d8308b1420e3ffab551e4b63c34c15c [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. cmd/
  5. dartsystemtest.go
  6. googletest.go
  7. gotest.go
  8. result.go
  9. rusttest.go
  10. testparser.go
  11. testparser_test.go
  12. trftest.go
  13. vulkanctstest.go
  14. zircon_utest.go
tools/testing/testparser/README.md

testparser

Reviewed on: 2020-04-22

Parses stdout from various test frameworks into a common structured format.

This library is useful for instance for providing structured test results on commit queue dashboards, or for performing more sophisticated data on test results such as when identifying flakes or root-causing test infrastructure failures.

Support for several common test frameworks and runtimes is provided:

  • C++ tests (via GoogleTest)
  • Rust tests (via rust-lang/libtest)
  • Go tests (via golang.org/pkg/testing)
  • Dart tests (via package:test)
  • Generic Test Runner Framework tests (agnostic of language & runtime)
  • Specialized Zircon unit testing framework
  • Specialized Vulkan CTS testing framework

This library is designed to be extensible and testable. Adding support for new test frameworks is easy, simple, and fun!

Building

fx set --with //tools/testing/testparser

Testing

fx set --with //tools/testing/testparser:tests
fx test testparser_tests