andrea-patricelli / syncope

Mirror of Apache Syncope
Apache License 2.0
0 stars 0 forks source link

AngularJS unit testing #17

Open andrea-patricelli opened 8 years ago

andrea-patricelli commented 8 years ago

Develop unit tests for angular componenets, controllers, services, etc. Possibly integrating tests in maven lifecycle, and provide a on/off mechanism to disable this tests (for jenkins). Try to minimize external tool dependencies.

andrea-patricelli commented 8 years ago

After an half-day spike we realized that is not so trivial to setup angular unit tests with maven, webjars and minimal set of sw to install on the machine. The easiest way is to use the Jasmine maven plugin http://searls.github.io/jasmine-maven-plugin/, with the support of phantomjs maven plugin to have an headless browser. It's not easy to configure this plugin, there are a lot of problems with recent versions and with webjar deps, so it must be scheduled a 8-12h task to have something to use in maven lifecycle.