Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A new take on John Resig's TestSwarm
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
client
scripts
server
.awsbox.json
.gitignore
LICENSE
Procfile
README.md
package.json

README.md

TestMob

TestMob is a distributed unit test system loosely based on John Resig's project TestSwarm. Manual unit testing Javascript across a variety of OS's, browsers and devices is a very time consuming process. TestMob allows many clients to join the mob. As soon as a request to kick off a test comes in, all available clients begin to run the tests. When a client completes the suite the results are sent back to the initiator.

Use in your site

  • Include the following snippet in your unit tests after all of your included unit tests:
  <script src="https://testmob.org/include.js"></script>
  • Open up a browser which will act as the "boss". The boss does not run tests but initiates a job and collects results. Open https://testmob.org and start a family.
  • Open up a second browser which will act as an "associate". Associates do jobs.
  • Open https://testmob.org. Join the same family as the boss.
  • Return to the boss. Enter the "Job Address" (unit test address) . Start the job.
  • Watch the results flow in.

Caveats

  • TestMob can currently only be used with QUnit.
  • Unit Tests must be reachable by all members of the family.

Running locally

  • Clone the repo - git://github.com/stomlinson/testmob.git
  • npm install
  • npm run - By default, the server listens on 0.0.0.0:5000. These can be changed by specifying the IP_ADDRESS and PORT environment variables.

Libraries/parts of libraries Used:

Author:

Getting involved:

I am happy to review submissions!

License:

This software is available under version 2.0 of the MPL:

https://www.mozilla.org/MPL/

Something went wrong with that request. Please try again.