exercism / go-test-runner

GNU Affero General Public License v3.0
15 stars 17 forks source link

Remove parent test output if subtests are present #52

Closed junedev closed 2 years ago

junedev commented 2 years ago

Fixes #8 in the way suggested here https://github.com/exercism/go-test-runner/issues/8#issuecomment-932854153.

Parent test results are consistently removed if subtests results are present. I don't make a distinction between failed or passed because the otherwise the number of tests would change depending on failed or passed and the parent results is just as unhelpful in case of pass as it is in case of fail.
I checked that no existing test files include assertions/ outputs outside of the subtest. I added an extra sentence to the readme to explain this new logic.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1329564186


Totals Coverage Status
Change from base Build 1312839059: 0.0%
Covered Lines: 23
Relevant Lines: 29

💛 - Coveralls