Giter VIP home page Giter VIP logo

testing_web_applications's Introduction

Testing Web Applications

Slide deck: http://www.slideshare.net/sethmcl/testing-web-applications-34887514

Demo Resources

demo_app contains the sample weather app project

First step

Ensure you have node.js installed, and then run npm install from the demo_app directory.

Demo Server

To start the demo server, simply run npm start

End to End tests

The end to end tests are written with the Nightwatch.js library. The code for the tests can be found in test/end_to_end/boston.js.

You can run the tests with the command:

npm run-script e2e

Note: You must have Firefox installed

Unit Tests (server side code)

The unit tests for server side code are written using the Mocha library. Test source code is located in test/unit/lib/Weather.spec.js.

You can run the tests with the command:

npm test

Unit Tests (client side code)

The unit tests for client side code are written using the Venus.js framework, and utilize the Mocha library. Test source code is located in test/unit/static_assets/js/WeatherWidget.spec.js.

You can run the tests with the command:

npm run-script test-browser

testing_web_applications's People

Contributors

sethmcl avatar

Stargazers

 avatar Erik Chau avatar Tonny avatar Fernando Montoya avatar Dawson Botsford avatar danielsdesk avatar Jorge González avatar  avatar  avatar Vance Tran avatar Tejesh Mehta avatar

Watchers

 avatar James Cloos avatar

testing_web_applications's Issues

npm start just shows the background image

following the steps you mentioned in README, it just loads an empty page with the sky background.

Workaround:
Looking at errors in chrome developer tools I found it is looking for missing files in demo_app/static_assets/components/ . As they were located in node_modules and just copied them after creating components directory...
├── jquery
│   ├── AUTHORS.txt
│   ├── bower.json
│   ├── CONTRIBUTING.md
│   ├── dist
│   ├── MIT-LICENSE.txt
│   ├── package.json
│   ├── README.md
│   └── src
└── mustache
├── bower.json
├── CHANGES
├── LICENSE
├── mustache.js
├── mustache.js.nuspec
├── package.json
├── Rakefile
├── README.md
└── wrappers
And then it worked. Just wondering if there is a better way to fix this..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.