• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    JavaScript
  • Created almost 15 years ago
  • Updated about 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

(unsupported) Jasmine JsTestDriver Adapter. Write Jasmine BDD code, and run it on JsTD.

Jasmine Adapter for JsTestDriver

Unsupported

This project is kept public for historical purposes, but please proceed with caution. There are some known issues that you should be aware of.

I've moved to using Karma as JSTD replacement, and the project includes a Jasmine adapter already.

Author

Requirements

Usage

Create, or update, a jstestdriver.conf file (see wiki page for more info).

Update your jstestdriver.conf by prepending the jasmine library and the adapter's source files.

For example:

load:
- "../jasmine/lib/jasmine-1.0.1.js"
- "../JasmineAdapter/src/*"
- "your_source_files.js"
- "your_test_files.js"

Copy server.sh and test.sh (included) to your working directory, for convenience.

# copy
cp /path/to/jasmine-jstestdriver-adapter/*.sh ./

First: run server.sh and supply -p, for port, and -j, path to jstestdriver.jar or follow the convention defined in the .sh scripts (see Caveats below).

Open up http://localhost:9876/capture (update for your port) in any browser.

Finally: run test.sh to test all tests (specs) included with the jstestdriver.conf. Optionally pass a -j and -t arguments to test.sh to set the path to jstestdriver.jar and any test you'd only like to run, respectively.

Directory Layout

  • src: The adapter source code. Intent is to match interface with interface.
  • src-test: The test files that verifies that the adapter works as intended.

Caveats

jsTestDriver.conf and *.sh files

The files located in this repo assume that the parent folder has the jasmine source and a jstestdriver compiled available.

Update the paths, or pass arguments (as explained above), to reflect your own layout if you'd like to test the adapter.

JSTD 1.3.2

This release has a known bug (232) with relative paths. Quick solution is to place the jasmine.js and JasmineAdapter.js inside of the absolute path. In other words, make sure you do not use ... Other options are to: use a 1.3.1.jar or compile a jar from the HEAD (trunk) of the JSTD repository.

Changes

  • 1.1 - 2011-04-06 Olmo refactors and clean code into a more encapsulated adapter.
  • 1.0 - 2010-12-14 Misko completely rewrites the adapter and is now a passthru for JSTD. Adds ddescribe and iit.
  • 0.5 - 2010-10-03 Chistoph has been improving the code and fixing bugs. Adds .sh files for simple run of server and client.
  • 0.2 - 2010-04-22 Misko fixes and refactors the adapter: beforeEach, afterEach, and nesting supported.
  • 0.1 - 2009-12-10 Olmo Initial release. Some support for beforeEach, afterEach, and matchers.

More Repositories

1

moocanvas

MooTools-style Canvas
JavaScript
17
star
2

git-todo

Simple shell script to print out todo statements from files.
JavaScript
12
star
3

grunt-mootools-packager

Grunt task for MooTools Packager (YAML Package/Provides/Require Definitions)
JavaScript
10
star
4

sfErrorNotifierPlugin

(unofficial) The sfErrorNotifierPlugin sends automatically email notifications when application errors (exceptions) occur and are not caught. Optionally, it will send notifications also for PHP Fatal Errors and/or PHP Warnings.
PHP
6
star
5

mootools-1-vs-2

Compare and explain MooTools 2.0 by comparing against 1.3. Use the 1.3.x and 2.y.x branches to create comparisons.
JavaScript
4
star
6

Injectigator

Injectigator: funny name.. serious business. A runtime JS performance investigator.
JavaScript
4
star
7

Function.Iterator.js

JavaScript Function Iterator. A practical attempt to create generators in JavaScript. Some sugar to help you, but the power lies in JS' closures.
JavaScript
4
star
8

cametrics

A RESTful logging system for Campaign Metrics
Python
3
star
9

cametrics-js-client

2
star
10

karma-sauce-browsers

Build a dictionary of browsers based on user input that can be used in karma-sauce-launcher.
JavaScript
2
star
11

SVR.js

Separated Variable Reader (SVR). Takes a text and provides an interface to read forwards and backwards each line.
JavaScript
2
star
12

habwatch

Harmful Algal Bloom (HAB) Watch is a listing of HAB events as reported by the community, state program volunteers, official offices, from historical events, or by other MERHAB projects.
JavaScript
2
star
13

sfPackagerPlugin

A symfony 1.4 plugin for Packager, a JavaScript packer. Includes jsmin-php to compress for production.
PHP
2
star
14

what-to-eat

Example app development done in < 10 hours. Shortcuts taken. Be warned. ;)
JavaScript
2
star
15

cametrics-python-client

Python Client for the Cametrics System
Python
2
star
16

boot-irc-bot

HTML
2
star
17

openshift-express-example

Shell
2
star
18

d2AS3

A script to backup files to Amazon S3.
Shell
2
star
19

github-spy

A Node.JS script that runs periodically (cron) and reviews activity of the unwilling participant and publishes the activity/findings to an analytics engine (keen.io).
JavaScript
2
star
20

namespaced-objects-conundrum

JavaScript
1
star
21

hangmanapp

Hangman App Game made for Tech Tuesdays (http://www.techtuesdays.co) Nov. 26th, 2013 Presentation.
JavaScript
1
star
22

cametrics-php-client

PHP Client for the Cametrics Logging System
PHP
1
star
23

request

Just a simple fetch wrapper.
JavaScript
1
star
24

rsvp

Simple PHP server to demonstrate how Code RGV's always right URL works
PHP
1
star
25

git-setup

Simple multiple git/github account management
Shell
1
star
26

resume

My professional resume
1
star
27

BusinessScrape

scrapy project to learn about local businesses (thanks to local chamber of commerce directories)
Python
1
star
28

cametrics-appengine-client

AppEngine Client for the Cametrics System
Python
1
star
29

openapi-driven-development

A FastAPI app + OpenAPI repo to demonstrate "OpenAPI Driven Development"
Shell
1
star
30

php-extensions

Just random bits of functions to extend PHP. If you're on OO fan, run for your life.
PHP
1
star
31

sfConsoleDebug

Replacement for the obtrusive sfWebDebug
PHP
1
star