James Phoenix

speaker
411 appearances 1 recordings 1 series first heard Nov 2024 last heard Nov 2024

James Phoenix’s voice in public audio — every appearance, attributed to the second.

Trend

recordings per month · last 12 months
No recordings in the last 12 months.Older appearances are listed below; set an alert to hear about the next one.

Appearances

newest first · ▶ plays the moment
Now, uh, for indie hackers, you guys should get on in integration tests, right?
So playwright is your friend.
Don't don't go for jest tests, don't go for unit level testing, just basically go for I have this one test that runs and it tests the entire feature end to end, right?
That's it.
Um so um you know, that maybe that could be for example logging in, clicking on a table, um, uploading a PDF, and then uh clicking the go button and then um uh after a bunch of API endpoints, a result comes back.
And that's like one feature.
And you can just write a single playwright test to do that.
Um and then you get the benefit of an integration test which will test these uh
larger flows without having to test all the bits of the app.
Personally, I do I do write tests, but I actually have in my cursor rules file, I have um chess tests and playwright tests and PyTests, PyTest tests.
Yeah.
But basically what I do is I tell it as I write the code, can you make empty tests?
And my feet my so so I'm feature first with empty tests.
And sometimes those empty tests get filled if it means that the product is gonna be more reliable.
So I I think that actually there is value in both, and people that don't test at all have got it wrong, and people that are militant with testing have also got it wrong.
We're s we're strictly talking about the startup space.
If you're building an enterprise banking app,
then you can't not test because if the the risk of something going wrong actually outs offsets basically the test.
But when we're talking about indie hacking, I think you should be feature first, empty tests, and then you should fill some of the empty tests with uh playwright integration tests.
They're the best bang for your buck.
Showing 281–300 of 411 · page 15 of 21 ← Previous Next →