Code Monkey home page Code Monkey logo

meteor-coverage-app-exemple's Introduction

Travis Circle CI Coveralls Codecov
Build Status Circle CI Coverage Status codecov

What's up?

Unfortunately, the combo meteor-coverage & spacejam is unstable, with 1 to 10 % chance to fail a test with a phantomjs error that some ES6 is undefined (=corrupted).
You can see on the circle ci page some tests with +150 times the same test and that just fail.

How to test your app

Test package using tinytest

Not working

Test package using mocha

meteor test-packages --driver-package=practicalmeteor:mocha
becomes
spacejam test-packages --driver-package=practicalmeteor:mocha-console-runner
Required : See the Package.onTest block of the file packages/somepkg/package.js

Test app & full-app using mocha

meteor test --driver-package=practicalmeteor:mocha
becomes
spacejam test --driver-package=practicalmeteor:mocha-console-runner
Required : See .meteor/packages

spacejam CLI

  • [test, test --full-app, test-packages]
  • --coverage "<export types>" (indexOf is used to detect types)
    • out_lcovonly creates a lcov report (for CI platforms)
    • out_html creates a html report
    • out_coverage creates a dump of the coverage - used when you want to merge several coverage
    • in_coverage imports a coverage dump (previously create with out_coverage)
    • out_json_report creates a json report
    • out_json_summary creates a json_summary report
    • out_text_summary creates a text_summary report
    • out_teamcity, out_cobertura, out_lcov_, out_text_, out_text_lcov are not working yet
  • --driver-package=practicalmeteor:mocha-console-runner

See the .travis.yml for additional informations

update meteor-coverage

git submodule update --remote
cd packages/meteor-coverage
git pull [..]

meteor-coverage-app-exemple's People

Contributors

serut avatar cgalvarez avatar

Watchers

James Cloos avatar Jesse de Vries 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.