Unit tests and fixtures
Posted
by Wizzard
on Stack Overflow
See other posts from Stack Overflow
or by Wizzard
Published on 2010-05-05T10:49:30Z
Indexed on
2010/05/05
11:08 UTC
Read the original article
Hit count: 266
unit-testing
|fixtures
We have a bunch of unit tests which test a lot of webpages and REST API services.
Currently when our tests run it pulls from these pages live but this can take ages to run sometimes, and it also feels like the tests should be testing more of our code - not just relying on them being up and responding (if that makes sense..).
Is it better practice to save a valid api response and with the unit tests load this in during setup?
Thoughts?
© Stack Overflow or respective owner