Closed orichters closed 6 months ago
Difficult. testthat
is designed for unit tests, but we are doing integration tests with it. It will require to write custom expect_X()
functions. See https://github.com/remindmodel/remind/pull/1424
It would be awesome if the messages coming from piamInterfaces about which summations fail would somehow be easily printed to the user in case the tests fails. Do you have a good idea how to do it?
Why not simply come up with a nice written summary printed to output in checkSummations and make it optional via a parameter (turned off by default)? Default would still be returning the table.
Alternatively, extend .reportSummationErrors
in convGDX2mif?
@fbenke-pik: Agree, I think I can even implement that myself. Just let .reportSummationErrors
raise a warning instead of a message.
Dear @fbenke-pik, maybe you have a good idea how to improve the logging within the tests on failing summation checks. Currently, you get the following:
It would be awesome if the messages coming from piamInterfaces about which summations fail would somehow be easily printed to the user in case the tests fails. Do you have a good idea how to do it?