Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.46 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.46 KB

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