Skip to content

Running the Tests

firebug-crossfire edited this page Mar 13, 2012 · 1 revision

Testing Crossfire

There are two different methods for testing Crossfire included in the Github tree. One is a collection of FBTest tests, the same test framework used by Firebug. The other method uses Ant and the Python test client.

FBTest

Using the fbtest:all value in the test list should cause the FBTest console to find the Crossfire FBTest suite with FBTest version 1.7 or 1.8. Currently the Crossfire FBTest tests will only pass if run in sequence, because the server and client are started by separate tests in the same Firefox process.

Ant build.xml tests

The build.xml file in the firefox/ subdirectory of Crossfire contains a 'test' target which will attempt to install Firebug and Crossfire in a new profile and launch Firefox with Crossfire running in server mode. The Ant script then tries to run the Python test client and send commands to the running server.

In order to run these tests, you will need Java and Ant, as well as Python installed. On Windows you will also need a python readline implementation like pyreadline.

In addition to checking out Crossfire you will also need to have Firebug checked out from Github somewhere (or at least an extracted copy of the XPI), then modify the firebug.dir property in build.xml so the location attribute points to the directory which contains Firebug.

Clone this wiki locally