Jasmine BDD Contrib

Jasmine is a behavior-driven development framework for testing JavaScript code

Summary of Contents

This module packages the Jasmine behavior-driven development framework in a form suitable for use with Foswiki.

Usage

Add this inline in the topic text:
%INCLUDE{
   "%SYSTEMWEB%/JasmineBddContribInline"
   version="..."
   source="..."
   specs="..."
   elemid="..."
}%

Parameters:
  • version: Jasmine version number; if not filled in, 1.1.0 is used
  • source: comma-separated list of source code file locations
  • specs: comma-separated list of test specification file locations
  • elemid: id of HTML element to display the test

Example of filled in parameters:
%INCLUDE{
   "%SYSTEMWEB%/JasmineBddContribInline"
   version="1.1.0"
   source="%PUBURLPATH%/%SYSTEMWEB%/JasmineBddContrib/jasmine-standalone-1.1.0/src/Player.js,%PUBURLPATH%/%SYSTEMWEB%/JasmineBddContrib/jasmine-standalone-1.1.0/src/Song.js"
   specs="%PUBURLPATH%/%SYSTEMWEB%/JasmineBddContrib/jasmine-standalone-1.1.0/spec/SpecHelper.js,%PUBURLPATH%/%SYSTEMWEB%/JasmineBddContrib/jasmine-standalone-1.1.0/spec/PlayerSpec.js"
   elemid="test"
}%

Test installation

If the contrib is installed, you will see a test here:

More information

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.

Contrib Info

Author: Foswiki:Main/ArthurClemens
Copyright ©: Foswiki integration 2011: Arthur Clemens
Copyright ©: Jasmine 2008-2011: Pivotal Labs
License: Jasmine: MIT License
License: Foswiki integration: GNU General Public License
Version: 12320 (2011-08-17)
Release: 1.0.0
Change History:  
17 Aug 2011 1.0.0 First release
Dependencies: None
Home: http://foswiki.org/Extensions/JasmineBddContrib
Support: http://foswiki.org/Support/JasmineBddContrib
Topic revision: r1 - 17 Aug 2011, ArthurClemens
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License