Code Monkey home page Code Monkey logo

angular-phonecat-livescript-socketstream's Introduction

AngularJS Phone Catalog Tutorial Application, in LiveScript with SocketStream 0.3.2

Build Status

Motivation

  • use SocketStream
  • make AngularJS unit and E2E Tests work (refer to this thread)
  • include unit test coverage report
  • use LiveScript, LESS and Jade

Install

Run

$./scripts/install.sh

besides

npm install

it also globally install some npm binaries needed, e.g.

npm -g install [email protected]

to supports test spec files in LiveScript

Start Server

$./scripts/web-server.sh

server listen on http://localhost:4000/app

Unit Test

Mocha in browser

http://localhost:4000/test/client

Mocha with PhantomJS from CLI

$./scripts/test.sh 

Jasmine with Testacular (not optimal)

use SS_PACK=1 and load the minified js in client/static/assets, in which SS style 'require' is defined:

$./scripts/test-jasmine.sh 

will run

./scripts/pack.sh

first to only pack files (not launch server)

Unit Test Coverage Report

First have the web server running

$./scripts/web-server.sh

then

$make test-cov

and then visit the html coverage report at http://localhost:4000/coverage.html

note the node-jscoverage instrumented version of mocha test in browser is at http://localhost:4000/test/client/cov

json2htmlcov is used to render the output of

mocha-phantomjs -R json-cov http://localhost:4000/test/client/cov

E2E Test

Browser

url http://localhost:4000/test/e2e/runner.html

Testacular

$./scripts/e2e-test.sh 

angular-phonecat-livescript-socketstream's People

Contributors

alexeygolev avatar cburgdorf avatar djebbz avatar ifedotov avatar igorminar avatar jksdua avatar marcenuc avatar mhevery avatar rolaveric avatar segeda avatar vojtajina avatar yiwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

romanminkin

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.