Open rpspringuel opened 3 years ago
How is that different than accepting the result as the new expectation for the current test?
The issue is when the backwards compatibility test doesn't yet exist. This option would create the backwards/TEST
using the existing tests/TEST
as the basis (copying all related files and modifying the filenames). One would do this for a test which involves code which has been deprecated. Once the backwards compatibility test is created, you'd then (if needed) modify the tests/TEST
to not use the deprecated code and (if that also changes the result) accept the result as the new expectation.
There should be a
backward
mode for gregorio-test.sh which will convert given TEST into a backwards compatibility test (copying the files intobackwards/
and adding the_B
as appropriate).Further, review-results.sh should have an option where a failed test can be converted to a backwards compatibility test (with the current expectation) and the result (which failed against the old expectation) made into the future expectation for that test.