ResearchEquals.com icon indicating copy to clipboard operation
ResearchEquals.com copied to clipboard

Testing strategies for quirrel

Open nsunami opened this issue 3 years ago • 3 comments

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).

nsunami avatar Oct 11 '22 13:10 nsunami

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.)

nsunami avatar Oct 11 '22 14:10 nsunami

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?

chartgerink avatar Oct 18 '22 09:10 chartgerink

Thank you for the input! @chartgerink

I think the best approach for testing quirrel may be:

  1. invoke jobs and check conole output
  2. check the test app deployment works

Would that be good for now?

nsunami avatar Nov 02 '22 14:11 nsunami

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 :)

chartgerink avatar Dec 20 '22 14:12 chartgerink