DEV Community

Discussion on: Try ending today with a failing test for a great start tomorrow

Collapse
 
yordiverkroost profile image
Yordi Verkroost

It's indeed a way to make sure you can start tomorrow on a roll, but what if you have a policy that demands a building solution every time you commit? For continuous delivery, such a thing is very important. You could let a failing test only be a warning upon build, but the question is whether that is a good idea.

Collapse
 
nholden profile image
Nick Holden

I don't commit until I've made the test pass. That means I'm leaving unstaged changes on my laptop many nights. If you're not comfortable with that, you could also try stashing your changes, or committing your changes and amending the commit before pushing it.