FusionForge

Test Suite

From FusionForge Wiki
Revision as of 08:24, 24 April 2014 by Beuc-inria (talk | contribs) (syntax)

Jump to: navigation, search

There are a number of unit tests (including some syntactical ones) that are applied to the code.

Other higher-level tests are conducted with Selenium.

TBD

$ make build-unit-tests

Applying unit tests :

$ cd tests/ 
$ phpunit AllTests.php

Requirements

  • phpunit
  • htmlpurifier

Individual test sources are in :

  • /tests/code/syntax/

Selenium IDE

You can download the mozilla plugin available at [1]

Selenium in Fusionforge tests

Run a single selenium test example :

sh -x tests/scripts/phpunit.sh RPMCentos52Tests.php --wait --filter="ContextualHelp::testContextualHelp"

See also