moodle-qtype_formulas
moodle-qtype_formulas copied to clipboard
Tests
This issue is meant to keep track of stuff that can / should be done w.r.t. automated testing.
Unit tests
- [x] is every function covered?
- [x] check of no. of arguments for each function
- [x] write specific unit tests for implementation of
- [x] concat
- [x] diff
- [x] fill
- [x] join
- [x] len
- [x] map
- [x] poly
- [x] shuffle
- [x] sort
- [x] str
- [x] sublist
- [x] sum
- [ ] use strings from language file when checking for error messages (consistency)
- [x] use data providers for better diagnostic output
- [ ] regrading
Behat
- [x] switch between easy and expert mode for grading criterion (one part / multiple parts)
- [x] given simple / expert criterion -> form initialisation correct?
- [x] valid simple criterions, switch to expert mode -> correct value shown?
- [x] invalid simple criterions -> what happens?
- [x] easy criterion, switch to simple mode -> conversion working?
- [x] set criterion (simple mode), submit -> correctly saved?
- [ ] delete parts (once this is implemented via a button + javascript)
- [x] variable instantiation (number of datasets, which dataset to show, preview)
- [ ] backup/restore for questions including an image
- [x] question usage in a quiz (port mobile tests to browser)
- [ ] backup/restore of a course containing formulas question
- [ ] moving of question between categories, with/without images, also move category to another parent category