Skip to content
A headless testrunner for qooxdoo unit tests using the TAP protocol
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
source
.gitignore
.nvmrc
.travis.yml
LICENSE
Manifest.json
README.md
compile.json
package-lock.json
package.json
qx-lock.json
runtests.sh

README.md

Qooxdoo TAP Testrunner

Build Status Coverage Status

The is a TAP testrunner for Qooxdoo.

ce53gt1e05

Online Demo

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

Adding an testrunnner to your own code

$ npx qx package update
$ npx qx package install qooxdoo/qxl.testtapper
$ echo 10 > .nvmrc
$ npm i puppeteer yargs nyc coveralls puppeteer-to-istanbul

Now edit the "myapp.test.*" entry in your compile.json file to point to the test classes in your own application.

$ 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

$ node source-output/resource/qxl/testtapper/run.js http://localhost:8080
$ node_modules/.bin/nyc report --reporter=text-lcov | node_modules/.bin/coveralls

if you start run.js without arguments it ouputs a little help

Developing API Viewer

Clone this repo and compile it:

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

Then open http://localhost:8080

You can’t perform that action at this time.