emn178 / blog Goto Github PK
View Code? Open in Web Editor NEWemn178's blog.
emn178's blog.
Mocha is a test framework for JavaScript, it provides Node.js and browser versions. Assume we implement a JavaScript library and we want to run unit tests automatically. And also, we want that it could be used in Node.js and browsers. We can use following methods to do that.
This example files structure look like this...
Travis CI is service for Continuous Integration and it is easy to integrate with the projects on GitHub. It support many programming languages. Travis CI will run unit tests after the project update and report the results. This article will introduce how to integrate node.js projects.
You can sign in with GItHub account and find your projects on GitHub. Go to the Accounts page on the top-right side...
We had known How to Write a Library for Node.js and Browser with Mocha Unit Tests. Now, we can use some tool to calculate code coverage further.
We used mocha before, so we choose jscoverage because it can support mocha. Please done your unit tests before start...
In Ruby, we use Bundler to manage the gem in our projects. We also use bundle exec
prefix to run the command in our projects for ensuring that it's running in current bundler. Eg.
bundle exec rake db:migrate
But, it seems a little inconvenient so that we can use binstubs to omit it. Assume that we want to generate binstubs of rake
:
bundle binstubs rake
This will generate rake
script in the bin
folder, and now we can run...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.