- Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
- From the project folder, execute the following command:
npm install
- Ensure that Gulp is installed globally. If you need to install it, use the following command:
npm install -g gulp
Note: Gulp must be installed globally, but a local version will also be installed to ensure a compatible version is used for the project.
Integration tests are performed with Protractor.
- Place your E2E-Tests into the folder
test/e2e/src
- Install the necessary webdriver (this is done automatically with gulp e2e)
npm run pree2e
-
Configure the path to the webdriver by opening the file
protractor.conf.js
and adjusting theseleniumServerJar
property. Typically its only needed to adjust the version number. -
In another console run the E2E-Tests
npm run e2e
- You can set the protractor baseUrl with environmental variable E2E_URL or like this (default is http://localhost:9000)
npm run e2e -- --baseUrl http://localhost:3000
To make angular work with this repository just remove the aurelia plugin in protractor.conf.js
and replace loadAndWaitForAureliaPage
with get
in file demo.spec.js
.
This is already enough for AngularJS 1 to work.
If you like to run AngularJS 2 apps, you need to add the following to your protractor.conf.js
in addition:
onPrepare: function() {
browser.ignoreSynchronization = true;
},
useAllAngular2AppRoots: true
If you like to play around with other frameworks, you could use the following site containing sample apps for testing proposes: