-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement
The expected results of the unit test cases in the gtest_interpreter are currently handwritten in the code.
Once the expected results have changed, we have to update them using the following steps
for (auto updated_case : all_cases)
{
1. run unit test and fail
2. update the new expect result
}
When there are many cases to be updated, the developer will spend more time updating the cases.
Here we should try to provide some ways to simplify the time it takes to update the case.
There are two options available
- Move the input and output of the case from
gtest_interpreter.cpptogtest_interpreter.inandgtest_interpreter.out, then provide a command to a command to update and overwrite the contents ofgtest_interpreter.outbase on the input ofgtest_interpreter.in. Just liketidb --record - Provide a command to batch compare all cases in A so that the steps to update a case can be simplified to the following
1. auto all_new_expect_results = compareAll();
2. update new expect results
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.