Skip to content

A Java/Javascript full-stack AngularJS + Spring Boot MVC Rest that makes web developers insanely productive. (Angular, Bootstrap, Bower, Browserify, Font Awesome, Grunt, jQuery, JSHint, Mocha/Chai, LESS, Livereload ...

Notifications You must be signed in to change notification settings

mallim/sbangular

Repository files navigation

sbangular

Run e2e angular tests with webdriver.

Build Status Dependencies devDependencies

Libraries Demonstrated

sbangular comes with many of popular, battle-tested modern web frameworks and libraries. All these parts are already wired together for you using best practices! :) Don't waste time writing boilerplate code.

How to Use

Development

Grunt tasks to build your app:

$ grunt mockup              # with reloading to do mockup
$ grunt test                # to perform the mocha tests

Testing

End-to-End (E2E) Testing with Protractor

Protractor wraps around WebDriverJS, which is a javascript binding for Selenium-Webdriver.

Selenium-Webdriver is a browser automation framework. Tests are written with the WebDriver API, which communicates with a Selenium server to control the browser under test. - Protractor Getting Started Guide

Therefore, you need to first download and install Selenium standalone server. If you successfully performed npm install, you will have ./node_modules/.bin/webdriver-manager. You can download and install Selenium standalone server by the following command:

$ ./node_modules/.bin/webdriver-manager update

From then on, you can start the server via:

$ ./node_modules/.bin/webdriver-manager start

You need to have the Selenium server running before running E2E tests. Once the Selenium server is running, you should also start the application server (in another tab) because your tests will run against it:

$ gradle bootRun

While the application server is running, open another tab and run e2e tests using Protractor.

$ grunt e2e

Contributing to the Project

All pull requests are welcome.

License

And of course:

MIT: http://mallim.mit-license.org

About

A Java/Javascript full-stack AngularJS + Spring Boot MVC Rest that makes web developers insanely productive. (Angular, Bootstrap, Bower, Browserify, Font Awesome, Grunt, jQuery, JSHint, Mocha/Chai, LESS, Livereload ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published