8000 GitHub - Artazor/jsperf.com: jsperf.com v2. https://github.com/h5bp/lazyweb-requests/issues/174
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Artazor/jsperf.com

 
 

Repository files navigation

jsperf.com

Build Status Test Coverage Code Climate

Chat on irc.freenode.net in the #jsperf channel.

How to run a local copy of jsPerf for testing/debugging

Prerequisites

You’ll need io.js and MySQL installed.

  1. Clone the repository (git clone https://github.com/jsperf/jsperf.com.git).
  2. Install dependencies (npm install).
  3. Get a Browserscope.org API key by signing in and going to the settings page. (You'll need this in the next step)
  4. Setup database and other environment configuration (npm run setup).

Running the server

npm start

Testing

We use lab as our test utility and code as our assertion library. Lab enforces linting with eslint. To run the test suite:

# everything
npm run test-lint

# directory
npm run test-lint -- test/server/web

# file
npm run test-lint -- test/server/web/contributors/index.js

If you're in a hurry, use test-fast to skip linting

Coverage

When travis-ci runs the tests, it enforces 100% code coverage. You can run this locally with:

npm test

HTML Report

To generate an HTML report with code coverage, run:

npm run test-cov-html

Gotchas

  • ES6 Template Strings are not supported by esprima which means you can't generate coverage reports which means npm test won't pass.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.2%
  • Handlebars 3.2%
  • CSS 1.6%
0