How to test django's front-end javascripts -


i'm trying test django powered website's backbone.js front-end.

i found out karma.js , jasmine frontend testing, seems "front-end", means cannot test interactions between front-end backbone models , django rest api server.

what i'm looking testing framework can test front-end javascripts in bdd style (including interactions between front-end , back-end).

i know there few tools testing dom, such selenium or lettuce, etc. want test front-end "javascript", not dom, , that's why tried out karma.js , jasmine @ first.

is there testing framework can test front-end back-end network interactions? or there way tweak karma.js work nicely django's development server?

lettuce + selenium + django's liveservertestcase best option system/integration testing in tdd enviroment. liveservertestcase supports testing fixtures handles set , tear down of working test server.

karma , jasmine great low-level, unit testing (ie things don't require db layer or middleware layer). shouldn't need django in order test these calls, because each api request should have expected/known api response should used input js functions.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -