zxul767 / pawn

A chess engine and machine learning testbed
4 stars 2 forks source link

Add compact reporter for unit tests #32

Closed zxul767 closed 2 years ago

zxul767 commented 2 years ago

Unfortunately Catch (https://github.com/catchorg/Catch2) doesn't support a reporter for tests results that is at the level of granularity that I like (i.e., with overall results for individual tests and grouped by suite), so I had to write a bit of an adapter to get a better report.

To use this reporter, one must invoke the unit test suite as follows:

COMPACT=true make unit_test

tests-report


NOTE: To be able to use this, one must have installed a recent version of Python (3.6+) and the rich library