Giter Site home page Giter Site logo

teamname's Introduction

team-name

This project was generated with the Angular Full-Stack Generator version 3.3.0.

Getting Started

Prerequisites

Developing

  1. Run npm install to install server dependencies.

  2. Run bower install to install front-end dependencies.

  3. Run mongod in a separate shell to keep an instance of the MongoDB Daemon running

  4. Run grunt serve to start the development server. It should automatically open the client in your browser when ready.

Build & development

Run grunt build for building and grunt serve for preview.

Testing

Running npm test will run the unit tests with Karma.

Karma will be used to test the site, and in some cases we will run end-to-end testing.

End To End testing will be applied by using an automated tool (or manual running of sites) to determine whether or not simple tasks will run on the site. Failure of an end-to-end test will indicate a larger problem with how the website works.

Karma is a test runner that applies unit tests to verify behaviour.

First, We will inject dependencies onto our functions as listed in the AngularJS documentation (https://docs.angularjs.org/guide/di).

We can use describe(...) which tells us the name of the test it(...) which will tell us what the test is doing beforeEach can be done to instantiate an object before the test runs, and then expect can be used to verify the behaviour of the function is as expected.

For example, we can use beforeEach to create a new user. We can then run expects on the current password, change the user's password, and then verify that the password has been changed correctly using the expect function. Expectation can also be helped with expect(user.getPassword().to.equal(value);, where 'to.equal' will give us the form.

We will also test controllers using Karma. This will allow us to verify the type of object that is being created by the controller is what is needed. For example, we can run expect(controller.User).to.be.an.instanceOf(User); to verify that the object being created is of the right type.

As per our testing to be started at a later date, this testing will be implemented to ensure that our Tasks are completed for testing.

teamname's People

Contributors

katarina1234 avatar nicdddd avatar bryan-kc avatar lowhung avatar

Watchers

James Cloos avatar  avatar

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.