jeudi 3 septembre 2015

Tests auto discovery with PhantomJS + CoffeeScript

I'm looking for a way to implement a comprehensive functional testing suite for a middle-scale web app. Normally I'd love to use CasperJS, but the issue is that I still have to implement the following things:

  • Scanning up the directory and discovering the tests
  • Tracking up which tests to run (I'd really hate to re-run all dozens of tests after each crash occured)
  • Reports generation

In addition to that, I'm finding it really convenient to organize my tests by using the conception of classes, just as the Python's library named 'unittest' does. As a consequence, the testing framework should not only be able to recursively search across the files, but also to traverse all the hierarchy of classes.

Am I looking for something which is already implemented and can run on top of Phantom?

Aucun commentaire:

Enregistrer un commentaire