Fork me on GitHub

UI

User interface module

Files

  • Bower.json and package.json: third party dependencies for the UI
  • Grunfile: build file
  • Karma* : tests configuration files
  • Osgi.bnd : web endpoint declaration

Tests

There are three kind of tests:

src/it/java/** : Selenium tests: full application tests (with backend started) * Server and UI full karaf feature * Sample Selenium test

src/test/javascript/e2e : end-to-end karma test for testing UI and web pages without java backend * Tested files references * Sample e2e test

src/test/javascript/spec/*** : Controllers unit tests

UI files

Running

  • You’ve got to install Ruby with Sass and compass gems
  • You’ve got to have npm installed with bower and grun-cli nodes

You can then run mvn clean install on the project (or grunt serve, grunt build…)

grunt useful commands

  • grunt build: make a complete build on the project
  • grunt test: execute karma tests on the project (use grunt e2e or grunt unit for launching one of them).
  • grunt serve: launch a change reactive ui server