freebsd-src/contrib/kyua/model
Igor Ostapenko 99689201a1 kyua: Do not count skipped as passed in test cmd
It changes output of 'kyua test' CLI command only. Hence, other outputs
like junit are kept intact for CI and other use cases. It's meant to
improve UX of attended use cases.

The issue is that the following can be tricky to interpret:

  222/222 passed (0 failed)

It can be read as all tests are passed, but it might be a summary line
of all tests skipped due to some requirement is not met.

It's reworked to easily distinguish such cases:

  222/222 passed (0 broken, 0 failed, 0 skipped)
  0/222 passed (0 broken, 0 failed, 222 skipped)

The overall formula is:

  <actually passed>/<total> (<details about not actually passed ones>)

Suggested by:	kp
Reviewed by:	ngie, markj
Approved by:	markj (mentor)
Differential Revision:	https://reviews.freebsd.org/D46653
2024-10-05 10:22:22 +00:00
..
context_fwd.hpp
context_test.cpp
context.cpp
context.hpp
exceptions_test.cpp
exceptions.cpp
exceptions.hpp
Kyuafile
Makefile.am.inc
metadata_fwd.hpp
metadata_test.cpp
metadata.cpp
metadata.hpp
README
test_case_fwd.hpp
test_case_test.cpp
test_case.cpp
test_case.hpp
test_program_fwd.hpp
test_program_test.cpp
test_program.cpp
test_program.hpp
test_result_fwd.hpp
test_result_test.cpp
test_result.cpp kyua: Do not count skipped as passed in test cmd 2024-10-05 10:22:22 +00:00
test_result.hpp kyua: Do not count skipped as passed in test cmd 2024-10-05 10:22:22 +00:00
types.hpp

This directory contains the classes that form the data model of Kyua.

The classes in this directory are intended to be pure data types without
any complex logic.  As such, they are simple containers and support the
common operations you would expect from them: in particular, comparisons
and formatting for debugging purposes.

All the classes in the data model have to have an on-disk representation
provided by the store module; if they don't, they don't belong in the
model.  Some of these classes may also have special behavior at run-time,
and this is provided by the engine module.