Partial credit for output matching

This topic contains 2 replies, has 2 voices, and was last updated by  Ryan 2 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author

    Posts

  • #798

    Reply


    Ronald

    Can I set up output matching to give partial credit? Looks like it’s an all or nothing sort of deal.

    #799

    Reply


    Ryan

    Keymaster

    That’s correct. Output matching is either matches or doesn’t match. There’s no partial credit built in like there are in the other test types.

    The reason we went this way is that there wasn’t a good way to determine how to check how much of the output needed to be compared. Should each line be compared? Should each character be compared? What about extra characters? Should you count off for that? We just couldn’t think of a way to do this that would work for everyone.

    If you have something specific, you can write a JUnit test that captures output. You’d then be able to compare it however you want.

    #807

    Reply


    Ryan

    Keymaster

    This was a really good idea for a quick blog post. Thanks for that.

    Comparing output in a JUnit test

Viewing 3 posts - 1 through 3 (of 3 total)

Reply To: Partial credit for output matching
Your information: