Giter Club home page Giter Club logo

angular2-jasmine-karma's Introduction

#Angular 2 App Testing

This repo contains a simple Angular App with tests configured. We are using Jasmine, Karma and Istanbul for setting up our tests.

About the Project

This is a "Angular Restaurant" website, a virtual restaurant displaying a list of menu items. User will be able to choose items online, add it to their cart and then place an online order with different payment methods.

(Status: IN PROGRESS)

Before you run the application

Clone this application on your local machine and cd into it. Then do the following:

npm install
npm run build

How to run the application?

npm start

Other recommended ways

On the terminal, do

npm start

Open another terminal tab and then do

npm run build-and-watch

If you use build-and-watch, you do not have to use build. This will build your project for the first time and will watch for any changes in /src/ folder. Once a change is detected, it will re-transpile your TypeScript to JavaScript and push your new stuff to /dist/. You do not have to re start the project, just refresh the page.

** TODO: ** Add browser sync so we do not have even have to reload the page.

How to run tests?

This will run the test using Karma/Jasmine. Shows the result on terminal.

npm test

How to run test coverage report?

This brings test results and coverage status on a nice HTML test report page using Istanbul.

npm run coverage

Frameworks/Libraries Used

  1. Angular JS 2
  2. Jasmine JS
  3. Karma
  4. TyepScript
  5. Lodash

Want to help?

Want to file a bug or contribute some code ? Go ahead and issue a PR(Pull Request). The only requirement is you make sure to run all test successfully before creating a PR.

angular2-jasmine-karma's People

Contributors

afirdousi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hanss

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.