ResearchEquals.com
ResearchEquals.com copied to clipboard
Testing strategies for quirrel
I was working on the dependabot upgrade for quirrel (#811), and I was not 100% sure how to test.
I can access the quirrel's console via http://localhost:9181/. I tried clicking "invoke" on a job to clear unverified accounts, but I was unable to verify that the job worked (I was still able to log in with the unverified account).
I had several instances where I was not able to use quirrel's web interface. Instead, I had to go to the API endpoints manually (e.g., http://localhost:3000/api/weekly-digest-mailer) to evoke the job.
(It could be that I'm just impatient to wait for the job.)
Thanks @nsunami!
Invoking the jobs would result in console output - also if there's an error. Sometimes I add some minor logging if there's something specific I need to test.
I believe quirrel is primarily being maintained - I always double check what actually changed. Most of the time it isn't much but adding contributors, and minor changes. Of course also checking whether the deployment works is a way (but not sufficient per se).
Does something like this help you?
Thank you for the input! @chartgerink
I think the best approach for testing quirrel may be:
- invoke jobs and check conole output
- check the test app deployment works
Would that be good for now?
Yes that works - sorry for the immense delay on this. Adding this to the wiki as well and closing this issue as it is stale :)