Student specified test cases.

Student specified test cases.

de Chris Sangwin -
Número de respuestas: 2
Richard, 

Do you see some value in a CodeRunner extension in which students are required to add in a small number of test cases, prior to their adding in their own code? Obviously, the students' test cases would be assessed by running them against the teacher's answer.... 

This might help embed the value of test driven design, and force students to read the specifications prior to coding. 

Sorry if you've already thought about this idea! Just a mad thought. 

CodeRunner continues to be very useful to us in Edinburgh, with expanding use. 

 Chris

En respuesta a Chris Sangwin

Re: Student specified test cases.

de Richard Lobb -

Funny you should mention this, Chris. The next release of CodeRunner will have a new Table UI, that I wrote specially for a new type of Testing question. Below is a screen dump of the first question of that sort that I'm planning to use next semester in our stage 1 course.

This isn't quite what you suggested. It's a specific different question type, rather than the usual sort with student-supplied test data. I'm not sure how one would go about marking a question of the sort you propose although I can see it has other benefits.

What do you think?

Richard

Testing question screen dump

En respuesta a Richard Lobb

Re: Student specified test cases.

de Chris Sangwin -

Richard,

That looks like exactly the kind of case I wanted to cover.  Thanks!  

I was suggesting the student write both the test cases and the code itself, but that can be covered with two questions. We should test this new functionality out here I think before commenting further.

Chris