testdouble / jasmine-example

testdouble.com
1 stars 5 forks source link

Controlling Test Data #11

Open searls opened 8 years ago

searls commented 8 years ago

It's generally very important for tests to control their data, both to ensure reliability (reduce erratic failures and test pollution) but also to maximize expressiveness (the ability to cleanly exercise the behavior you want to observe).

In unit tests, this is normally a function of building clean APIs that require a minimal amount of arrangement.

The challenge increases as tests become more integrated. A number of issues become interesting:

sarkasm commented 8 years ago

:+1:

JoeyParshley commented 8 years ago

:+1:

jnguyen72 commented 8 years ago

:+1:

hparekh1 commented 8 years ago

:+1: