Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

Should you change app code for a test?

It depends on why you're changing it

Joel Clermont
Joel Clermont
2024-03-14

From our daily Laravel tips email. Get the next one in your inbox.

When you're writing a test it can be so tempting to just "tweak" some app code to make it easier to write that test.

In the latest episode of the No Compromises podcast, Aaron and I will discuss why that might not be a good idea. We also talk about some app changes while writing tests that are beneficial to the overall project.

Listen Now (12 min)

And after listening, don't forget to subscribe to the podcast, so you don't miss future episodes.

Here to help,

Joel

P.S. Next time you bump into a weird "head scratcher" bug, don't forget about our Get Unstuck calls.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.