Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test validation and robustness of grading vars #124

Merged

Conversation

PhilippImhof
Copy link
Collaborator

The problem outlined in #122 shows that teachers might accidentally create risky a grading criterion. They might also do the same in the grading vars, e.g. using testvar = _0/_1;.

This PR adds a unit test to make sure invalidated grading vars do not break a question. Also, while fixing the issue in #122, I realized that we do not verify the validation of the grading vars in the edit form actually works. Therefore, this PR adds a behat test.

@PhilippImhof PhilippImhof self-assigned this Nov 17, 2023
@PhilippImhof PhilippImhof added the tests Add / improve tests (acceptance testing, unit tests) label Nov 17, 2023
@PhilippImhof PhilippImhof force-pushed the gradingvars-validation branch from 8acb986 to e007c42 Compare November 17, 2023 07:37
@PhilippImhof PhilippImhof force-pushed the gradingvars-validation branch from e007c42 to 6a9a84c Compare November 17, 2023 07:37
@PhilippImhof PhilippImhof merged commit c3fbb4c into FormulasQuestion:master Nov 17, 2023
53 checks passed
@PhilippImhof PhilippImhof deleted the gradingvars-validation branch November 17, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Add / improve tests (acceptance testing, unit tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant