Skip to content

Adding E2E tests #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
14 changes: 12 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
node_modules

node_modules/
bower_components/
temp/
dist/
Gruntfile.js
test/bs2_ng115_test_page.html
test/bs2_ng120_test_page.html
test/bs3_ng115_test_page.html
test/bs3_ng120_test_page.html
test/bs3_ng200_test_page.html
test/test_page.js
test/tests_page.html
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Contributing

Here are the guidelines and required reading for contributing.

## Getting Started

### Prerequisites
1. [Node.js](https://nodejs.org/en/)
2. [VS Code](https://code.visualstudio.com/) (optional but recommended)

### Setting up the repo
1. Fork the repo and clone to your work environment
2. Run `npm i` to install required dev dependencies
3. Run `npm i -g [email protected]` then run `coffee -c Gruntfile.coffee`
5. Run `grunt` to build the project

### Running Tests

After completing the 'Getting Started' section,
1. Run `webdriver-manager update` to ensure the webdriver for selenium (used by protractor) is up-to-date
2. Open an additional terminal and run `node e2e/express.js` to start serving the test pages
3. In the original terminal, run `protractor e2e/conf.js`

## Pull Request Process

1. Ensure any generated files are ignored.
2. Update the README.md and other documentation as it relates to your changes.
3. Rebase your branch on the latest version of the branch on which it is based. This may need to happen multiple times as other PRs are merged.
17 changes: 9 additions & 8 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ module.exports = (grunt)->
'dist/abn_tree_directive.js':'temp/_directive.coffee'
'test/test_page.js':'test/test_page.coffee'


copy:
dist:
files:
'dist/abn_tree.css' : 'src/abn_tree.css'


watch:
Expand All @@ -95,9 +98,9 @@ module.exports = (grunt)->
options:
livereload:true

css:
files:['**/*.css']
tasks:[]
copy:
files:['src/**/*.css']
tasks:['copy']
options:
livereload:true

Expand All @@ -107,13 +110,11 @@ module.exports = (grunt)->
options:
livereload:true

grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-string-replace'


grunt.registerTask 'default', ['jade','string-replace','coffee','watch']



grunt.registerTask 'default', ['copy','jade','string-replace','coffee','watch']
122 changes: 0 additions & 122 deletions Gruntfile.js

This file was deleted.

Loading