FusionForge

Difference between revisions of "Test Suite"

From FusionForge Wiki
Jump to: navigation, search
(Merge Selenium)
(syntax)
Line 19: Line 19:
 
* /tests/code/syntax/
 
* /tests/code/syntax/
  
= Selenium IDE =
+
== Selenium IDE ==
  
 
You can download the mozilla plugin available at [http://seleniumhq.org/projects/ide/ ]
 
You can download the mozilla plugin available at [http://seleniumhq.org/projects/ide/ ]
  
= Selenium in Fusionforge tests =
+
== Selenium in Fusionforge tests ==
  
 
Run a single selenium test example :
 
Run a single selenium test example :
 
  sh -x tests/scripts/phpunit.sh RPMCentos52Tests.php --wait --filter="ContextualHelp::testContextualHelp"
 
  sh -x tests/scripts/phpunit.sh RPMCentos52Tests.php --wait --filter="ContextualHelp::testContextualHelp"
  
= See also =
+
== See also ==
  
 
* [[Virtual machine development environment]] : run the test suite in a complete preconfigured environment
 
* [[Virtual machine development environment]] : run the test suite in a complete preconfigured environment
 
* [[Tools/BuildBot]] : automated test suite runs
 
* [[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