tdd - How to do a smoke Test and Acceptance test in a Javascript Aplication? -



tdd - How to do a smoke Test and Acceptance test in a Javascript Aplication? -

i want smoke test in order test connection between web app , server itself. know how it? in add-on want acceptance tests test whole application. tool recommend?

my technology stack is: backbone , require.js , jquery mobile , jasmine bdd test.

regards

when doing bdd should mock collaborators. tests should run , not depend on external resources such servers, apis, databases etc.

the way want create in f.e. jasmine declare spy pretends server. move on defining response of spy in particular scenario or example.

this best aproach if want application environment undependent. needed when running jenkins jobs - building whole infrastructure around job hard reproduce.

make spy/mock objects represent server , in specs define how external sources behave - way can focus on behavior application delivers under specified circumstances.

javascript tdd bdd acceptance-testing smoke-testing

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -