GithubHelp home page GithubHelp logo

phanendradant / angular-js-es6-testing-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomastrajan/angular-js-es6-testing-example

0.0 0.0 0.0 1.98 MB

Enhanced testing of Angular JS 1.X applications using ES6 modules

License: MIT License

Shell 2.27% JavaScript 50.36% CSS 3.11% HTML 44.26%

angular-js-es6-testing-example's Introduction

Angular JS 1.5 - ES6 Module Unit testing and Karma Integration testing seed by @tomastrajan Build Status

Great seed for enterprise projects with heavy focus on unit and integration testing.

This repository contains two releases:

  1. 1.4.0 - for Angular JS 1.4 and lower (uses Component Pattern for Angular JS)
  2. 1.5.0 - for Angular JS 1.5 and above which supports native .component(name, options) API

Info

Components

Getting started

  1. Clone repository git clone https://github.com/tomastrajan/angular-js-es6-testing-example.git
  2. Enter project directory cd angular-js-es6-testing-example
  3. Install dependencies npm i or npm install

Scripts

All scripts are run with npm run [script], for example: npm run test.

  • start - start development server, try it by opening http://localhost:8081/webpack-dev-server/index.html

  • build - create dev build, check build directory

  • dist - create production build, check dist directory

  • server_build - serve content from build directory

  • server_dist - serve content from dist directory

  • lint - lint code (with ESLint)

  • mocha - run all unit tests (with Mocha)

  • watch - run and watch all unit tests (with Mocha)

  • karma - run all integration tests (with Karma / Jasmine)

  • test - lint code and run all tests (with Mocha and Karma)

  • ci - for Travis CI

Tests

For more detailed info about tests check the original blog post.

  • *.test.js - mocha unit tests
  • *.integration.test.js - mocha integration tests (manual)
  • *.spec.js - karma integration tests (spin up Angular JS app context)

angular-js-es6-testing-example's People

Contributors

tomastrajan avatar simon04 avatar spyder1472 avatar rememberlenny 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.