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

Testing Framework #7

Open
j-delaney opened this issue Apr 8, 2015 · 3 comments
Open

Testing Framework #7

j-delaney opened this issue Apr 8, 2015 · 3 comments

Comments

@j-delaney
Copy link
Owner

We should set up a testing framework.

@cameronellis
Copy link
Collaborator

What do you have in mind?

@j-delaney
Copy link
Owner Author

At the moment there are a lot of try{} catch{} statements that log errors, but that's not a very good method. It's possible that CAPE, RMP, or WebReg will change how they format their HTML someday. When this happens, Planner Helper will break and the user will be left quite confused.

Here's what I was thinking would be awesome to have. On loading WebReg, Planner Helper will run some self-tests. These will check things like making sure certain parts of WebReg haven't changed and that RMP, CAPE, and Grade Distribution pages work for fetching data. If these tests don't pass it will log the error and alert the user of the problem so the user isn't left wondering why RMP is never returning anything.

@cameronellis
Copy link
Collaborator

I've found this list of professors: http://www.ucsd.edu/catalog/front/faculty.html

We could use it when testing to make sure that it's at least getting some professors from the cape website. And if it gets none of them, then we can figure out that the html may have changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants