--To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAJxq84_2u%3DtUpEKwOQ0fPDFcOB80w0K%3Dh%2By_Kg6DM7T8LkSPOg%40mail.gmail.com.
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 django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
Having worked with both, I'd like to put in a vote for Jasmine over QUnit. Unit test is a Java construct which can feel out of place in Python, never mind JS. I find QUnit clunky and difficult to write, whereas jasmine (as a behavioural tool) is pleasant to write and likely comes closer to the kind of tests we would run - checking user interactions with the admin do the correct thing.
As an aside, there may be a way of avoiding the NodeJS problem for devs - I think a static HTML file which includes all the jasmine test files (or QUnit) would work in any (good) browser for local manual testing. We would then either use Phantom for Jenkins, or in theory we could open that aforementioned file using Selenium and check it runs all the JS tests properly. This is probably vile though.
The absolute best solution is to use Jasmine in browser opened via selenium or similar but report back individual test results via a socket to a custom python unit test reporter - reporting each JS test with details to the console as it if were a Python test. This is effectively what karma.js does from what I remember. This would not only be great for our test suite, but allow easily writing front end tests for any Django application. Several projects I have worked on has two completely distinct test suites one for JS and one for python. Being able to run both together must be better - and may also allow use of LiveServer like functionality within your JS (leaky) "unit" tests.
Marc
--
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 django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
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/CACuWcAxsRN6YwSM5GfA42TEgMv3cWeJ27L3gW5Yh%2Bpm5ASwMag%40mail.gmail.com.
> <mailto:django-developers+unsub...@googlegroups.com>. To post to
-----END PGP SIGNATURE-----
--
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 django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/53672D8A.2050005%40treyhunner.com.