I have been using test suites and test cases. Is it possible for grading to consider the cases too?
I often use it to distinguish test cases for a particular class like this:
TEST(Cup, DefaultConstructor) {
...
}
TEST(Cup, drink){
...
}
I think the current code uses the test suite name and only gives points when there are 0 failures.
|
auto testsuites = tree.get_child("testsuites"); |
|
bool worked = (0 == suite.failures()); |
Not sure what the best way to go would be, but maybe have grades associated with test cases instead, and check if the value of result is completed? Might need to investigate this further though.
I have been using test suites and test cases. Is it possible for grading to consider the cases too?
I often use it to distinguish test cases for a particular class like this:
I think the current code uses the test suite name and only gives points when there are 0 failures.
rubricscore/rubricscore.cpp
Line 86 in b675194
rubricscore/rubricscore.cpp
Line 249 in b675194
Not sure what the best way to go would be, but maybe have grades associated with test cases instead, and check if the value of result is completed? Might need to investigate this further though.