Test Column in Feedback

Test Column in Feedback

by Jens Allmer -
Number of replies: 1

Hi,

I am new to this and have been tinkering with creating different C questions.

Now I made a question (avg of an array) which I write code in the Testcase 1 field to create the array and the correct average.

Unfortunately, this shows up in the test column that the students get as feedback.

How can I work around that?

I would like to show what the test does but I would not want the complete code to be seen as it would provide the answer already (in case I allow a second trial with points).

Thank you,

Jens

In reply to Jens Allmer

Re: Test Column in Feedback

by Richard Lobb -

This is where the 'Extra template data' column comes in handy.

Put the comments in the testcode field and the code you want hidden in the extra field. Then change the template to include {{ TEST.extra }} immediately after {{ TEST.testcode }}.