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:
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