Difference between revisions of "AppSuite:RunTests"

(Setting up your system)
(Setting up your system)
Line 15: Line 15:
 
== Setting up your system ==
 
== Setting up your system ==
  
 +
=== Mac only ===
 +
  brew install phantomjs
 +
 +
=== All ===
 
You need at least ''node'' version 0.8 to use the latest version of ''karma'', which we need. Karma will be installed with all other development dependencies. So just make sure you ran
 
You need at least ''node'' version 0.8 to use the latest version of ''karma'', which we need. Karma will be installed with all other development dependencies. So just make sure you ran
  

Revision as of 13:41, 20 November 2013

API status: In Development

Running the ui tests

This article explains the test system of the frontend. It is aimed at developers that want to work with the frontend, be it creating new plugins or applications or modifying existing code using BDD. Bringing a BDD testing infrastructure to the frontend is still a work in progress and subject to (breaking) changes. Please contribute to the stability by reporting any issues or ideas to me.

Libraries

Setting up your system

Mac only

  brew install phantomjs

All

You need at least node version 0.8 to use the latest version of karma, which we need. Karma will be installed with all other development dependencies. So just make sure you ran

   npm install

within your ui directory in the appsuite repository.

Running the tests

Running the tests is pretty easy. For now, in the ui directory of your sources start the karma server with this jake task

   ./build.sh testserver

After that, open up a browser and point it to http://localhost:9876/.