Hacker News new | ask | show | jobs
by dpark 2900 days ago
This implies your team needs to invest more in getting your local environment to parity. My team invested heavily in making the local setup identical to the pull request environment so that the testing is identical. We’ve also invested heavily to ensure that nearly[1] the exact same tests run in our continuous integration pipeline as our pull requests, with the net effect being that a break in CI is by definition an environmental difference.

This drastically scopes down the surface area for CI breaks.

[1] There are a few exceptions for tests that specifically cover environmental config/behavior that cannot be fully tested locally.

1 comments

> takes no extra time

> invested heavily

pick one.

I did pick one and invested heavily. I never made a statement about "no extra time".
"So testing in browser is as expensive as writing unit tests with TDD."
I did not write that.

But also, testing in browser is more expensive long term that writing proper automated tests. Up front it’s cheaper, like any other technical debt.