numbas / editor

An editor for the Numbas e-learning system.
http://numbas.mathcentre.ac.uk
Apache License 2.0
59 stars 61 forks source link

You should be able to edit part unit tests to specify behaviour that you haven't seen yet #784

Open christianp opened 1 year ago

christianp commented 1 year ago

I have a part which doesn't mark correctly at the moment. I have a list of test cases I'd like to enter, so that I can check they're all satisfied.

At the moment, the only way of creating unit tests is to save feedback you've been given in response to a submitted answer. The intention is to preserve correct marking behaviour.

But this doesn't work for test-driven design, where you write failing tests first, and then edit the question until they pass.

You should be able to create a test from scratch, or edit an existing test, specifying the values or credit awarded for certain feedback notes.