5 ms·
Question for the tester type software engineers on HN... I like to write browser (puppeteer) tests for user-facing software criteria like "patreon link must wo
by sovietmudkipz 3y ago
Question for the tester type software engineers on HN...
I like to write browser (puppeteer) tests for user-facing software criteria like "patreon link must work." In the past I've written similar tests for small websites I've created where the purpose is to surface affiliate links for users to click on. My criteria is "from a money standpoint, is this the call to action I want my users to engage in?"
I don't know what type of test this is -- can anyone disambiguate testing terminology for me?
P.S. Browser based testing is brittle but since I often create websites and because I want to really ensure that I'm not 'lying' to myself in tests, using a browser is often the best (albeit slower) choice. These tests usually run in CI and I get notifications if they break.
P.P.S. I wish we had a better mental model for the types of tests than the "testing pyramid." I find the testing pyramid lacking.
- codazoda 3y agoI would probably call these integration tests. I came across this interesting tool for similar tests the other day. It lets you request websites or API’s and then search the return for a string. It’s more for checking uptime, so I dunno if it would be acceptable for this type of test, but it looks like a cool tool. https://onlineornot.com https://onlineornot.com
- theianjohnson 3y agoPuppeteer, Cypress, (once upon a time Selenium), etc are end to end or e2e
- marginalia_nu 3y ago> I wish we had a better mental model for the types of tests than the "testing pyramid." I find the testing pyramid lacking. I have a hunch that every pyramid model is bullshit. It's inherently appealing to present any sequence of things as a pyramid, regardless of whether it makes sense.
- z3t4 3y agoJust calling it "automatic test" will do. Or end to end where you have an automatic test acting as a user.