Skip to content

A collection of examples for the Intern testing library

Notifications You must be signed in to change notification settings

jvccvj/intern-examples

 
 

Repository files navigation

intern-examples

This repository is a collection of examples of using Intern in web applications. Use these examples as your guide to integrate Intern into your projects! Every example has a README that will guide you through the process of setting it up.

Note: Most examples require SAUCE_USERNAME and SAUCE_ACCESS_KEY in your PATH. Get Sauce Labs credentials by getting a free or a paid Sauce Labs account. If you don't want to sign up with Sauce Labs, then update the test configuration, set useSauceConnect: false, set the appropriate Selenium version and don't forget to run the Selenium server.

Examples

Backbone Application

See backbone-example folder and the associated README. This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the TodoMVC Backbone Example. This example will generate an HTML code coverage report in the html-report directory.


Dojo Application

See dojo-example folder and the associated README. This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the TodoMVC Dojo Example.


Ember Application

See ember-example folder and the associated README. This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the TodoMVC Ember Example.


jQuery Application

See jquery-example folder and the associated README. This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the TodoMVC jQuery Example.


React Application

See react-example folder and the associated README. This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the TodoMVC React Example.


Parallel Example

Using bash to run multiple instances of intern locally


Using Intern with Grunt

Grunt support is built into Intern, all you have to do is include the task in your Gruntfile using grunt.loadNpmTasks('intern');.

See grunt-example folder for an example of how to use it or read the task documentation.


Using Intern with Travis CI

See travis-ci-example folder and the .travis.yml in the root of this repository.

Running examples:


Using Cloud Testing Providers (BrowserStack, Sauce Labs, Testing Bot)

Each of the examples within this repository can be switched from running tests locally to using a cloud testing provider by setting the relevant Cloud testing Intern settings within the Intern config for that example.


External Examples

From the Wiki

Other Resources

Intern Wiki :: Intern Website

Got Examples?

If you have examples of using Intern in your projects, please file an issue and we will try to add it to this list.

About

A collection of examples for the Intern testing library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.7%
  • HTML 18.3%
  • CSS 2.0%
  • Shell 1.0%