You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Joshua Cohen (JIRA)" <ji...@apache.org> on 2015/09/03 23:17:46 UTC

[jira] [Commented] (AURORA-451) Set up test infrastructure for the UI

    [ https://issues.apache.org/jira/browse/AURORA-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14729804#comment-14729804 ] 

Joshua Cohen commented on AURORA-451:
-------------------------------------

Resurrecting this ticket with a new proposed mechanism for JS testing:

- Add gradle nodejs support (https://github.com/srs/gradle-node-plugin). This lets us use node.js to drive tests but does not require developers install node.js manually. The plugin instead manages the node.js install for you.
- Configure karma (http://stackoverflow.com/questions/22336537/how-to-run-js-karma-tests-from-gradle). Karma is a test runner that can launch webdriver tests for testing angular apps in the browser.
- Write tests (https://docs.angularjs.org/guide/unit-testing). Should speak for itself.

> Set up test infrastructure for the UI
> -------------------------------------
>
>                 Key: AURORA-451
>                 URL: https://issues.apache.org/jira/browse/AURORA-451
>             Project: Aurora
>          Issue Type: Task
>          Components: UI
>            Reporter: Suman Karumuri
>              Labels: deploy
>
> Create a basic infrastructure to run unit tests on the aurora UI. 
> The plan is to setup protractor[1] tests so it can run as part of gradle build using the gradle grunt plugin[3][4][5]. [2] provides the best summary of protractor. 
> [1] https://docs.angularjs.org/guide/e2e-testing
> [2] http://www.thoughtworks.com/insights/blog/testing-angularjs-apps-protractor
> [3] https://github.com/srs/gradle-grunt-plugin
> [4] http://naleid.com/blog/2013/01/24/calling-gruntjs-tasks-from-gradle/
> [5] http://blog.crisp.se/2013/04/30/yassalsundman/test-driving-javascript-grunt-with-gradle



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)