Casperjs: Can we organize a set of tests, for example phpunit, for example, "allTests"

I would like to organize my test packages like phpunit

A script that add all the tests found elsewhere in the same project

+4
source share
1 answer

An example of a small prototype of command line testing using CasperJS is at https://github.com/mcamiano/friendlyghost .

It mainly uses shell scripts to port CasperJS as a runner, providing test suite organization, test output logs, helpers, fakes, and even fixtures.

Passing it as an example only, not connecting - I really use Codeception with PhantomJS through Selenium2 as the main tool. By comparison, FriendlyGhost is not very sophisticated and, of course, not fast for many tests, but Casper CoffeeScript is a cleaner and more extensible language to work than Codeception modules, and a small shell can be good enough for diagnostic purposes.

0
source

All Articles