Skip to content

test suites and test cases #4

@pinventado

Description

@pinventado

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions