Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 3.94 KB

README.md

File metadata and controls

75 lines (53 loc) · 3.94 KB

Intern testing framework

Build Status codecov Average time to resolve an issue Percentage of issues still open FOSSA Status

Intern is a complete test system for JavaScript designed to help you write and run consistent, high-quality test cases for your JavaScript libraries and applications. It can be used to test any JavaScript code. It can even be used to test non-JavaScript Web and mobile apps, and to run tests written for other test systems.

If you’re into name-dropping, Intern gets used every day by teams at Twitter, Stripe, Mozilla, IBM, Marriott, Philips, Zenput, Alfresco, Esri, HSBC, ING, Intuit, and more. It’s also the testing framework of choice for growing numbers of open-source projects.

Quick start

Note that these instructions are for Intern 4 alpha. For Intern 3 instructions, please see the Intern tutorial.

  1. Install from npm

    $ cd /my/project/root
    $ npm install intern@next
  2. Create an intern.json file in your project root.

    {
      "suites": "tests/unit/**/*.js"
    }
  3. Verify that your configuration works by running Intern and checking that no errors are output.

    $ node_modules/.bin/intern
  4. Start writing tests!

More information

See The Intern Guide for more information about Intern 3.

Get help

The best place to ask questions and get answers about Intern is Stack Overflow. Just tag your question with intern. If you have more immediate questions, or just want to chat with other people interested in Intern, there’s an #intern IRC channel on freenode, and a Gitter room at theintern/intern. See the Help page for more information.

License

Intern is a JS Foundation project offered under the New BSD license.

FOSSA Status

© SitePen, Inc. and its contributors

Intern’s self-tests run on
BrowserStack logo