NodeJS with Intern
With Intern you can run Javascript unit tests on TestingBot's browser grid.
Run your javascript test on all our browsers in the cloud.
Installing the example
Make sure you have installed git
and NodeJS
.
Then proceed to clone our intern_example with the follow commands:
Once that's installed, please run the follow command to set up the example:
Run Intern test on TestingBot
In the tests/intern.js
file you'll find environment variables where you can indicate on which browsers you want your test to run on via TestingBot.
To actually run the test on TestingBot, we first need to specify the TestingBot key
and secret
in tests/intern.js
. You need to specify these in the webdriver
and tunnelOptions
variables.
Now you're ready to run the test on TestingBot.
To start the test, run the following command:
This will download and start our TestingBot Tunnel, run your test and report back the result to TestingBot.
Pick a NodeJS test framework
-
WebdriverIO
Webdriver/Selenium 2.0 JavaScript bindings for NodeJS.
-
CodeceptJS
Run acceptance tests with CodeceptJS on TestingBot.
-
Protractor
Protractor is an end-to-end test framework for AngularJS applications. Protractor is a nodeJS program built on top of WebDriverJS.
-
Soda
Selenium Node Adapter. A light-weight Selenium RC client for NodeJS.
-
Nightwatch
Nightwatch.js is an automated testing framework written in NodeJS.
-
Intern
Intern is a nodeJS framework for testing Web sites and applications.
-
WD.js
WD.js is a NodeJS client for WebDriver/Selenium.
-
Hermione
Hermione is a Test Framework similar to WebDriverIO, with automatic test retries and plugins.