I saw a previous discussion about JavaScript testing in Django but it looks
like there hasn't been any progress in a few years.

Some of my thoughts on this issue:

This would require choosing a JavaScript testing framework.  There are many
good ones out there.  A popular one should probably used for easier
community support.

Unit testing JavaScript (ideally) should not require running the Django
server.

JavaScript tests will probably require introducing Node.js into the
automated testing process.  Tests can be run manually from the browser, but
automated JavaScript tests tend to require Node.js and sometimes PhantomJS
(for headless testing).

The JavaScript tests should be run as part of the CI testing process.  If
the tests are run standalone this should be easy to do using a single
command (possibly requiring grunt or a similar task runner).

This seems like it would be a big change, but I think it could be done in
small steps.  Setting up the testing framework is the first big step.

What do others think about this issue?

-- 
Trey Hunner

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CACuWcAwHVJ7HfeWOui3pAT3nQJeABP_Vt5WQe1N5%2BvDs%2Bnt8GQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to