Skip to content

A headless testrunner for qooxdoo unit tests using the TAP protocol

License

Notifications You must be signed in to change notification settings

qooxdoo/qxl.testtapper

Repository files navigation

Qooxdoo testTAPper

The is a TAP testrunner for Qooxdoo.

ce53gt1e05

Online Demo

http://www.qooxdoo.org/qxl.testtapper/

Adding an testTAPper to your own code

$ npx qx package update
$ npx qx package install qooxdoo/qxl.testtapper

Now replace the "qx.test.*" entry in application.includes section of your compile.json file to point to the test classes in your own application. Also set value for the environment variable qxl.testtapper.testNameSpace in your compile.json.

$ npx qx serve

Then browse to http://localhost:8080. You will see that you now have a new application listed, the "Qooxdoo testTAPper", that you can click on the link to run. The output of the application may be a bit underwhelming ... have a look at the debug console to see the action.

If you want to run the tests from the command line you need a headless browser to run the tests. TestTAPper uses the puppeteer node module which comes with a built in copy of headless chrome and is thus very simple to use

$ npx qx test

Developing testTAPper

Clone this repo and compile it:

    $ git clone https://github.com/qooxdoo/qxl.testtapper
    $ cd qxl.testtapper
    $ qx serve

Then open http://localhost:8080