Should you change application code to support a test?
Update: 2024-03-05
Description
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, but we 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.
- (00:00 ) - Sometimes changing code makes testing easier
- (01:30 ) - Different types of code changes
- (02:45 ) - An example with Laravel jobs
- (04:30 ) - A time when it's okay to change code while testing
- (08:50 ) - Avoid problems by writing tests earlier
- (09:30 ) - Silly bit
Don't "compromise" on testing. See how we can help level up your Laravel project.
Comments
Top Podcasts
The Best New Comedy Podcast Right Now – June 2024The Best News Podcast Right Now – June 2024The Best New Business Podcast Right Now – June 2024The Best New Sports Podcast Right Now – June 2024The Best New True Crime Podcast Right Now – June 2024The Best New Joe Rogan Experience Podcast Right Now – June 20The Best New Dan Bongino Show Podcast Right Now – June 20The Best New Mark Levin Podcast – June 2024
In Channel