Niklas Hauser
2bbf725bcc
Harness: Make it interrupt safe.
...
We do not want to have a call to `validate_callback()` before
`run_next_case()` is finished or while `handle_timeout()` is executing.
2016-04-28 15:16:40 -05:00
Niklas Hauser
8d84612472
Harness: Add correct handling of failures in setup and teardown handlers.
2016-04-28 15:16:36 -05:00
Niklas Hauser
cbac633aa5
Defaults: Remove unnecessary namespaces.
2016-04-28 15:16:31 -05:00
Niklas Hauser
303fa5a3a0
Defaults: Make Greentea handlers more verbose.
2016-04-28 15:16:28 -05:00
Niklas Hauser
ad8fdc62d6
Defaults: Set greentea default handlers.
2016-04-28 15:16:24 -05:00
Niklas Hauser
64f54ed35c
Harness: Call case setup only once for control flow cases.
2016-04-28 15:16:20 -05:00
Niklas Hauser
06fc81f99d
Add much better default handler declaration and usage.
2016-04-28 15:16:16 -05:00
Niklas Hauser
171033622b
Move types and classes into seperate header files. Rename TestHarness to Harness.
2016-04-28 15:16:12 -05:00
Niklas Hauser
ded41049fb
Add unity assertion failure callback handler.
2016-04-28 15:16:08 -05:00
Niklas Hauser
9f770f8ec8
This commits gets rid of all dependencies on unity.
...
Failures will not longjmp, but are reported on top of the stack,
by calling the case failure handler, which then decides whether to
continue or abort testing.
Other changes:
- Individual cases can have their own setup and teardown handlers,
- Case repeats are now handled by the case handler returning `control_flow_t`,
- Separates `status_t` and `failure_t`,
- Implements useful default case setup and teardown, and
- Keeps score of passes and failures on per case and test basis.
2016-04-28 15:16:04 -05:00
Niklas Hauser
eef649e498
Remove return type from case handler.
...
Use AsyncCase constructor to signal waiting for a async callback.
2016-04-28 15:16:00 -05:00
Niklas Hauser
e4354b2c1a
Add interface and implementation of a list based unit test harness.
2016-04-28 15:15:56 -05:00