Skip to content

Unit Tests for different versions of MooTools Core

Notifications You must be signed in to change notification settings

mootools/mootools-core-specs

Folders and files

NameName
Last commit message
Last commit date
Feb 17, 2012
Nov 25, 2011
Nov 27, 2011
Feb 17, 2012
Nov 29, 2011
Nov 25, 2011
Feb 5, 2011
Nov 27, 2011
Apr 21, 2011
Jul 29, 2010
Oct 1, 2011
Nov 29, 2011
Apr 21, 2011
Jul 23, 2011

Repository files navigation

DEPRECATED!

The MooTools Core specs can be found in the mootools-core repository

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 --recursive
cd Runner
chmod +x server test runner runner.js buildCommonJS buildJSTDConfiguration

Requirements

  • NodeJS
  • PHP (for Packager)

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 {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 '{"specs": ["1.3base"], "path": "../core/"}'

Options "path" - Only needs to be specified if the core-specs repository is being used outside of the MooTools Core repository "specs" - The specs to run, see Sets.js "version" - The version of MooTools to be used for running the specs