This repository adds expressjs (ejs) to AngularSeed. Of course, Testacular can be used.
Clone the angular-seed repository and start hacking
You can pick one of these options:
- serve this repository with your webserver
- install node.js and run
node app
Then navigate your browser to http://localhost:3000
to see the app running in
your browser.
We recommend using jasmine and Testacular for your unit tests/specs, but you are free to use whatever works for you.
Requires node.js, Testacular (sudo npm install -g testacular
) and a local
or remote browser.
- start
scripts/test.sh
(on windows:scripts\test.bat
)- a browser will start and connect to the Testacular server (Chrome is default browser, others can be captured by loading the same url as the one in Chrome or by changing the
config/testacular.conf.js
file)
- a browser will start and connect to the Testacular server (Chrome is default browser, others can be captured by loading the same url as the one in Chrome or by changing the
- to run or re-run tests just change any of your source or test javascript files
Angular ships with a baked-in end-to-end test runner that understands angular, your app and allows you to write your tests with jasmine-like BDD syntax.
Requires a webserver, node app
Check out the end-to-end runner's documentation for more info.
- create your end-to-end tests in
test/e2e/scenarios.js
- serve your project directory with your http/backend server or node.js +
scripts/web-server.js
- to run do one of:
- open
http://localhost:port/test/e2e/runner.html
in your browser - run the tests from console with Testacular via
scripts/e2e-test.sh
orscript/e2e-test.bat
- open