Skip to content
MooTools Specs runner
JavaScript CSS Shell
Find file
Pull request Compare This branch is 9 commits ahead, 2 commits behind mootools:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Benchmarkjs @ 5eb59ec
Helpers
JSTD-Adapter @ cdc7f40
JSTestDriver @ da63b16
Jasmine-Node @ af77ac5
Jasmine
benchmark_runner
reports
.gitignore
.gitmodules
Configuration_Example.js
README.md
benchmark_runner.html
buildJSTDConfiguration.js
index.html
jsTestDriverServer.conf
runner.css
runner.html
runner.js
server
server.bat
test
test.bat

README.md

MooTools Core Specs

This repository is intended to provide the specification infrastructure for MooTools Core.

The infrastructure uses Jasmine as a UnitTest-Library. It is possible to run Specs via the browser, via JSTestDriver and via NodeJS.

Setup

Clone the MooTools Core repository and initialize the submodules.

Set up the Specs:

cd Specs
git pull origin master
git submodule update --init
chmod +x server test runner runner.js buildJSTDConfiguration.js

Requirements

  • NodeJS

Usage

  • Open index.html in your favorite browser and press the right link
  • Run the JSTD Server
    • Start via ./server {options}
    • Point one or more browsers to http://localhost:9876
    • Run all tests via ./test
  • Run in NodeJS via ./runner.js {options}

Available Options

Options are specified via JSON.

Example for JSTD ./server '{"version": 1.3, "path": "../core/", "specs": [1.2, "1.3base", "1.3client"]}'

Example for NodeJS ./runner.js '{"sets": ["1.3base"], "source": "../core/"}'

Options "sets" - The specs to run, see Configuration.js "source" - The source files package, see Configuration.js "preset" - You can simply use a preset with predefined sets and source, see Configuration.js

Something went wrong with that request. Please try again.