Automatically create a copy of CoderunnerDDLQuestions for internal debugging purposes
For debugging purposes, it would be convenient to have an option for the SQL-DDL question type that creates two versions of a given question: The student version that we currently already generate and an internal version that displays more detailed feedback/logs for the tests. The internal version should be exactly the same as the student version except for two things:
- The question title should have "(intern)" appended to it
- The value for RESULT_COLUMNS should be overwritten with
[["Beschreibung", "extra"], ["Test", "testcode"], ["Erhalten", "got"], ["Erwartet", "expected"], ["Bewertung", "awarded"]]
.
To implement this, we could add a CLI flag or a YAML schema key. Since creating the internal copy might not always be wanted, a CLI flag would be more ideal for Coderunner questions. However, since this is a very specific flag only for a specific question type, adding a key to the schema of Coderunner DDL questions is the better overall choice IMO.