Show (run) testcases until one of them fails?

Re: Show (run) testcases until one of them fails?

von Richard Lobb -
Anzahl Antworten: 1

No, the "Hide Rest If Fail" feature just suppresses the display of subsequent cases to the student. The rest still get run, and are displayed to staff (shaded darker).

If you want a "lazy evaluation" mode you have to implement it yourself with a template grader. For non-combinator graders you can set the abort attribute of the returned JSON record (see http://coderunner.org.nz/mod/book/view.php?id=193&chapterid=738). With a combinator grader you can return as many or as few test results as you like, so you simply stop testing on the first failing case.

Richard

Als Antwort auf Richard Lobb

Re: Show (run) testcases until one of them fails?

von Sergi García -

Thanks for your quick answer Richard!!

I was thinking in problems that not use combinator (for performance reasons). But I see the best way is desing problems that can use the power of combinator :)

Sergi.