ok-client icon indicating copy to clipboard operation
ok-client copied to clipboard

Hide a testcase from the student

Open eldos-dl opened this issue 6 years ago • 1 comments

I have noticed that students can see all the test cases, that are being checked by looking at the tests folder. Is there a way to hide the tests from the student?

eldos-dl avatar Apr 08 '20 12:04 eldos-dl

If you want students to reason about the expected output before seeing them, you can use the "locking" feature of OK (See the paper here for it's effectiveness: http://denero.org/content/pubs/las15_basu_unlocking.pdf)

If you're ok exposing the input but not the output, you can wrap it an another layer of hashing. Here's one way we've done that: http://denero.org/content/pubs/las16_sridhara_fuzz.pdf

If you fully want to hide the existence of a test case, you'll have to use server side auto-grading (and not client side scoring). It's pretty hard to fully hide what a program is executing (because end users control the code)

Sumukh avatar Apr 14 '20 18:04 Sumukh