-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Currently this has no tests, which is super not ideal. If I make a change to the way that the script finds the Lecture Recordings link for example, I want to make sure it doesn't break the script for any of the subjects for which I know it already works. For this we need tests.
Unit tests should just test small parts, but this is quite hard in such a variable environment. The LMS can change at any time, and I won't have access to the same subjects (or any, since I'm graduating) in the future. As such, it'd be nice to have access to a version of the LMS that won't change. The two most obvious ways to get this would be:
- Offline downloads of individual subjects in the LMS. The links in these pages would have to be changed to operate relative to the other offline files. This won't work for everything, like I don't think it'd work too well with the echocenter.
- Some sort of mirror of the LMS, where we take a clone of it and host it on our own server. This way we can control access. It could also get the latest version of the real LMS periodically, or only if it won't break any of the tests, which serves as a warning to say that the new LMS update will break the script in some way. This solution is probably not possible without cooperation from the uni.
- A login with persistent access to the LMS. This login would ideally have access to all of the subjects and never lose access to them. Much like 2, this is also very optimistic, considering that I imagine the uni would smash that "no" button.
I made a small attempt at setting up testing in the "testing" branch before giving up, having realised the numerous difficulties with setting it up. This is a big one.