Giter Site home page Giter Site logo

daniel-ro / intern Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theintern/intern

0.0 1.0 0.0 3.16 MB

A next-generation code testing stack for JavaScript.

Home Page: https://theintern.github.io/intern/

License: Other

JavaScript 0.31% TypeScript 97.41% HTML 0.61% CSS 1.67%

intern's Introduction

Intern

Software testing for humans

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


Intern logo


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.

  • Plain JavaScript code, in any module format (or no module format!)
  • Web pages generated by server-side languages (like Java, PHP, or Ruby)
  • Native or hybrid iOS, Android, and Firefox OS applications

Intern is minimally prescriptive and enforces only a basic set of best practices designed to ensure your tests stay maintainable over time. Its extensible architecture allows you to write custom test interfaces, executors, and reporters to influence how your tests run & easily integrate with your existing coding environment. Intern also comes with Grunt tasks so it can be quickly added to existing Grunt-based workflows, and is designed to work out-of-the-box with popular continuous integration services like Jenkins and Travis CI.

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.

Note that this documentation is for Intern 4 master, which is currently an alpha release.

Quick start

  1. Install from npm

    $ cd /my/project
    $ 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!

TypeScript setup

Intern installs a global variable that tests may not be aware of if nothing imports the base intern package. Also, Intern includes typings for several packages that haven’t made it onto DefinitelyTyped yet (and so can’t be installed as @types packages). To ensure all the necessary types are loaded, add the following statements to your tsconfig.json:

{
    "typeRoots": [
        "./node_modules/@types",
        "./node_modules/intern/types"
    ],
    "types": [
        "intern"
    ]
}

Compatibility

Intern can run unit tests in browsers that support ECMAScript 5, including mobile browsers on Android and iOS, and in Node 4+. It’s self-tests run against IE 10 and 11, Firefox 33 and current, Chrome 38 and current, and Safari 9 and 10, as well as Node 6 and 7.

Intern can run functional tests using WebDriver-compatible applications and services, including Selenium, Appium, Selendroid. It has built-in support for cloud testing services from BrowserStack, CrossBrowserTesting, SauceLabs, and TestingBot.

More information

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

intern's People

Contributors

csnover avatar jason0x43 avatar bitpshr avatar bryanforbes avatar neonstalwart avatar vladikoff avatar kitsonk avatar lingspb avatar jacobroufa avatar rodneyrehm avatar sholladay avatar liucougar avatar apsdehal avatar xizhao avatar leohuber avatar novemberborn avatar jsmike avatar milesj avatar owiber avatar stdavis avatar plumlee avatar itorrey avatar yepitschunked avatar vikki avatar bartoszkaczorek avatar gitgrimbo avatar lbod avatar unrealguard avatar kfranqueiro avatar jonmumm avatar

Watchers

Daniel R 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.