FusionForge

Difference between revisions of "Test Suite"

From FusionForge Wiki
Jump to: navigation, search
(Merge Selenium)
Line 1: Line 1:
 
There are a number of unit tests (including some syntactical ones) that are applied to the code.
 
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]] (see [[Virtual machine development environment]])
+
Other higher-level tests are conducted with Selenium.
  
 
TBD
 
TBD
Line 18: Line 18:
 
Individual test sources are in :
 
Individual test sources are in :
 
* /tests/code/syntax/
 
* /tests/code/syntax/
 +
 +
= Selenium IDE =
 +
 +
You can download the mozilla plugin available at [http://seleniumhq.org/projects/ide/ ]
 +
 +
= Selenium in Fusionforge tests =
 +
 +
Run a single selenium test example :
 +
sh -x tests/scripts/phpunit.sh RPMCentos52Tests.php --wait --filter="ContextualHelp::testContextualHelp"
 +
 +
= See also =
 +
 +
* [[Virtual machine development environment]] : run the test suite in a complete preconfigured environment
 +
* [[Tools/BuildBot]] : automated test suite runs

Revision as of 08:24, 24 April 2014

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