gngrOrg / grinder

a test suite for gngr
Apache License 2.0
4 stars 1 forks source link

grinder

an apparatus to test gngr.

Status

We are just getting started. We are currently trying to run the css2.1 test suite. More test-suites are planned for the future.

The test code uses the WebDriver protocol to navigate and screenshot the browser. The screenshots for the test and its reference are then compared.

On gngr side, we are implementing a subset of the WebDriver protocol and will then run grinder against it.

HowTo Guide

Getting started

Preparing the tests

sbt run prepare

This will parse and filter the tests from the css2.1 reference TOC. The details of the filtered tests are then stored in data/test-cases.xml.

Running the tests

sbt run compare <browser-name> <auth-key-for-gngr>

where browser-name can be either firefox or gngr.

This will open a new browser window, navigate to the tests and their references, screenshot them and compare the images.

When running with gngr, you need to set it up first:

Pausing the tests

touch pause

in this repo root will cause tests to pause.