News for hackers. Stuff that matters.
Re:Full Time by marginalia_nu on Friday June 16, 2023 @11:29AM (#36358293)
The links were cropped so I changed them with just a word for the service. But it turns out I can't markdown today and I changed the URLs instead of the text.

Fixed now.

Re:Full Time by sovietmudkipz on Friday June 16, 2023 @11:47AM (#36358635)
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.

Re:Full Time by codazoda on Friday June 16, 2023 @11:59AM (#36358856)
I 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

Re:Full Time by theianjohnson on Friday June 16, 2023 @12:27PM (#36359354)
Puppeteer, Cypress, (once upon a time Selenium), etc are end to end or e2e
Re:Full Time by marginalia_nu on Friday June 16, 2023 @01:32PM (#36360567)
> 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 a very clear way of presenting something that is not at all anything like a pyramid.

Re:Full Time by z3t4 on Friday June 16, 2023 @02:39PM (#36361651)
* * *