Jasmine BDD vs Integration Tests
Posted
by
lfender6445
on Programmers
See other posts from Programmers
or by lfender6445
Published on 2014-05-29T03:36:21Z
Indexed on
2014/05/29
3:58 UTC
Read the original article
Hit count: 490
JavaScript
|testing
Lets say I need to write a test for the front end.
A user visits buysomething.com, saves something to their wishlist, and a saved item count is updated.
DOM gets manipulated.
In my heart I feel this is better suited as an integration test - but my team is currently using jasmine to load fixtures and test such interactions. This leads to extremely brittle tests as they are reliant on a static fixture instead of the actual markup.
Are we misusing jasmine here?
© Programmers or respective owner