Re:Polly.js – Record, replay, and stub HTTP interactions
by stephen on Thursday June 14, 2018 @02:36PM
(#17314166)
Agreed! And, to me, record/replay is still pretending like it's controllable, b/c even if you decouple for replays, records will always be a PITA.
My depressing solution is to just not even try to automate tests against the upstream system and instead invest in test builders/DSLs that make mocks/stubs on both sides as pleasant as possible.
And when bugs slip through, make sure to update your stubs/mocks on both sides to prevent the regression.
To me this gets the most agility and reliability, and will be a test suite that developers don't hate 1-2-5 years down the road.
My depressing solution is to just not even try to automate tests against the upstream system and instead invest in test builders/DSLs that make mocks/stubs on both sides as pleasant as possible.
And when bugs slip through, make sure to update your stubs/mocks on both sides to prevent the regression.
To me this gets the most agility and reliability, and will be a test suite that developers don't hate 1-2-5 years down the road.