OpenCGA uses FitNesse along with RestFixture to write and execute Acceptance Tests. Each Test page is an independent collection of tests and can be either executed independently or as a part of Suite run.
Download Acceptance Tests Code
Once user has cloned OpenCGA from git repository using following command :
$ git clone https://github.com/opencb/opencga.git
There will be a directory "opencga/opencga-test/fitnesse". This contains the fitnesse-standalone.jar, dependencies and FitNesseRoot folder with all the acceptance tests.
Start FitNesse Server
The following command will start FitNesse server on port 7070:
java -jar fitnesse-standalone.jar -p 7070
After successful start of server, User can start web browser : http://localhost:7070/ and will see the following webpage :
User can read introduction to FitNesse, examples and other related material on this page or can directly dive into OpenCGA by clicking OpenCga link.
How To Run Acceptance Tests
As a first step, change the "baseURL" variable from SetUp pages and point it to the desired OpenCGA installation.
FitNesse tests can either be executed whole as a Suite by pressing "Suite" button on top of page or individual test pages can be independently executed by pressing "Test" button on top of that page.