third_party.pigweed.src/pw_unit_test
Wyatt Hepler 8663e9c4f0 Add evaluated string outputs to the test framework
- Integrate StringBuilder with the test framework. Test failures print
  "Actual: " followed by the evaluated values for the expression.
- Update SimplePrintingEventHandler to have the write function
  optionally output the newline.

Example:

[ RUN      ] Status.CompareToStatusCode
../../pw_status/status_test.cc:43: Failure
      Expected: Status(Status::ABORTED) == Status(Status::DATA_LOSS)
        Actual: ABORTED == DATA_LOSS
[  FAILED  ]

Change-Id: I4bd6f63cfd903ce2dc4959a1491825e7e743a522
2019-11-26 21:29:18 +00:00
..
public Add evaluated string outputs to the test framework 2019-11-26 21:29:18 +00:00
py Rename pw_cmd to pw_cli 2019-11-25 22:16:02 +00:00
BUILD Fix Bazel tests 2019-11-20 12:22:33 -08:00
BUILD.gn Add evaluated string outputs to the test framework 2019-11-26 21:29:18 +00:00
framework_test.cc Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
framework.cc Add evaluated string outputs to the test framework 2019-11-26 21:29:18 +00:00
main.cc Add evaluated string outputs to the test framework 2019-11-26 21:29:18 +00:00
README.md Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
simple_printing_event_handler.cc Add evaluated string outputs to the test framework 2019-11-26 21:29:18 +00:00
test.gni Make test runner script a pw command plugin 2019-11-25 11:10:28 -08:00

pw_unit_test: Lightweight C++ unit testing framework

The pw_unit_test module contains the code for Pigweed Test, a Googletest-compatible unit testing framework that runs on anything from bare-metal microcontrollers to large desktop operating systems.