Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
Checking mergeability… Don't worry, you can still create the pull request.
Commits on Aug 15, 2008
@gdagley gdagley pluginize and add generator 70cf5e0
Commits on Aug 22, 2008
@gdagley gdagley move some files around, include js.jar, and add spec_application.js t…
…o generator
Commits on Oct 31, 2008
Lawrence Karnowski Keeping the Javascript libraries in the plugin. f22c87d
Lawrence Karnowski Changing the names of the spec files from spec_*.js to *_spec.js (to …
…look more like Rspec files).

Added a "rake test:javascripts" alias.
Lawrence Karnowski cleaning up generators; moved 'test/javascripts' directory to 'test/j…
…avascript' to look more Rails-y
Lawrence Karnowski Tweaking the generators. Added templates for fixtures and spec_helper. 8b8d710
Lawrence Karnowski added the js-spec.css file 9aa9958
Commits on Nov 01, 2008
Lawrence Karnowski created a new all-in-one javascript_testing library for making HTML f…
…ixtures into in-brower test-runners
Commits on Nov 20, 2008
Larry Karnowski Fixed a bug where the command-line test runner wasn't running specifi…
…c tests anymore.
Larry Karnowski Updated the application.html template for the generator to have only …
…the code necessary and no more.
Larry Karnowski Fixed a bug in JSSpec that was causing nested arrays not to match cor…
…rectly with some_array.should(equal(some_array)).
Commits on Nov 21, 2008
Larry Karnowski Fixed an ordering bug that was causing files required by a spec to no…
…t be loaded before the specs started. (This was only happening in the browsers, of course.)
Larry Karnowski Added a "javascript_spec" generator. 33f5294
Larry Karnowski Whitespace-only change. (Fixed spacing in the JS spec files for the g…
Larry Karnowski Fixed a problem where a java.lang.String was creeping out of the API …
…instead of a Javascript string.
Commits on Nov 25, 2008
Larry Karnowski Added a "beInstanceOf" matcher. Added a helpful "debug(message)" meth…
…od for browser/Rhino-agnostic output.
Commits on Nov 26, 2008
Larry Karnowski Improved the 'flunk' message slightly. f42ed32
Commits on Jan 18, 2009
Larry Karnowski Changed from JS-Spec to Screw.Unit as the testing framework.
- upgraded env.js to the lastest from Chris Thatcher's GitHub
- upgraded Rhino jar to 1.7R2 (from John Resig's env.js project)
Larry Karnowski removed files unnecessary since the upgrade to Screw.Unit 40a6b10
Commits on Jan 23, 2009
Larry Karnowski documentation cbcdaab
Larry Karnowski cleaning up fixture/spec generation 9a28618
Commits on Jan 28, 2009
Larry Karnowski Cleaned up the output (less noisy, no line-breaks) and added support …
…for stacktraces in Rhino.
Commits on Jan 30, 2009
Larry Karnowski Added a quick rake task to view the fixtures directory. 5f0d93f
Larry Karnowski Updated env.rhino.js to Chris Thatcher's latest branch. 96e0e92
Larry Karnowski Added tentative support for jQuery 1.3.1. daedb72
Larry Karnowski updated generators 9341cc9
Commits on Feb 01, 2009
Larry Karnowski couple of env.js patches to add compatibility with Prototype ecc0a6a
Larry Karnowski oops, forgot to disable env.js debug logging 2023a7e
Commits on Feb 06, 2009
Larry Karnowski Removed unnecessary HTML from fixture generator. 1438dd7
Larry Karnowski Added a "rake js:debug:shell" command to load an interactive Rhino sh…
…ell with env.js & jQuery pre-loaded properly.
Larry Karnowski Optionally call the Rhino shell with rlwrap if it's installed. Added …
…shortcuts for "exit" and "quit" from inside the shell.
Larry Karnowski Cleaning up JavaScript shell rake task (including moving it to a simp…
…ler "rake js:shell").
Larry Karnowski taskpaper eb1eb2e
Larry Karnowski added support for running the javascript tests from either the "test/…
…javascript", "spec/javascript", or "examples/javascript" directories.
Commits on Apr 06, 2009
@rsim rsim generators use spec/javascripts directory if spec directory is presen…
…t or test/javascript directory otherwise
@rsim rsim modified javascript_testing.js and test_runner.js
added jquery-1.3.2.js
Larry Karnowski removed the screw.mocks import cb3d939
Larry Karnowski removed the screw.mock imports 4e7fdb2
Larry Karnowski Updated to latest version of env.rhino (a modified version of 0.9.1 -…
…- 2009-04-05).
Larry Karnowski Updated README and license files. 1921757
Commits on Apr 08, 2009
@jasonrudolph jasonrudolph Fix README instructions for running an individual spec
To run an individual spec, just give test name (not the complete file name).
Larry Karnowski taskpaper 176a712
Commits on Apr 11, 2009
Larry Karnowski Lots of changes:
    - Changed to be jQuery-opinionated (but you can still "jQuery.noConflict()" yourself to support prototype!)
    - added Smoke mocking/stubbing library
    - fixed the "tests start running before all JavaScript files are loaded" bug when running in browser
Larry Karnowski updated readme 2929551
Larry Karnowski Turning off all the "INFO" messages. 52afb16
Larry Karnowski Added more helpful error message when JavaScript test directory can't…
… be found.
Larry Karnowski Improved the generators.
 - removed some Prototype stuff
 - fixed some wording
 - fixed the spec template to properly require the correct JavaScript files
Commits on Apr 13, 2009
Larry Karnowski Better support for RSpec & Micronaut-style testing. Thanks to rsim fo…
…r the initial patch and cheezy for the bug report.
Larry Karnowski Explicitly use jQuery internally to make support for Prototype in spe…
…cs possible.
Commits on Apr 14, 2009
Larry Karnowski Changing the README over to Markdown and expanding. Still miles to go…
… before I sleep.
Larry Karnowski documentation; still lots to do b3ef811
Larry Karnowski little more docs; still long way to go 6d9961b
Commits on Apr 15, 2009
Larry Karnowski more README cleanup 07cfd66
Larry Karnowski more README eb30372
Larry Karnowski README typo fixes d930ac3
Larry Karnowski README: added Smoke mocking example b02dade
Commits on Apr 19, 2009
@jasonrudolph jasonrudolph Added task: Document Java as a system requirement 01bdb38
@jasonrudolph jasonrudolph Tweak README a8e0750
Commits on Apr 20, 2009
Larry Karnowski tweaking README 8c67cf4
Larry Karnowski and Jason Rudolph Update tasks in TODO.taskpaper 94dc867
Commits on Apr 21, 2009
Larry Karnowski Changed the plugin name from 'javascript_testing' to 'blue-ridge'. 1eb329d
Larry Karnowski fixed a few lingering references to the old name ac93ff6
Larry Karnowski fixed broken name reference in the JavaScript shell 8a903f8
Larry Karnowski Added section re TextMate integration to the README. 163c64a
Commits on Apr 22, 2009
Larry Karnowski Renamed the generators and the core in-browser JS file to "blue-ridge". dd8f7f5
Commits on Apr 28, 2009
@jasonrudolph jasonrudolph Fix link to TextMate bundle in README 9a819f4
Larry Karnowski Removed the dead link. af11e58
Commits on Apr 29, 2009
Larry Karnowski Minor tweak to the format of the generated spec files. c90a20a
Commits on May 06, 2009
Larry Karnowski README tweaks: "use GitHub's issue tracker", etc ed2820a
Commits on May 07, 2009
@mrowe mrowe Search directories recursively for *_spec.js files.
Signed-off-by: Larry Karnowski <>
Commits on May 08, 2009
@jasonrudolph jasonrudolph Update README to link directly to the project's GitHub issue page 0ea27c8
@jasonrudolph jasonrudolph Update README to include link to Blue Ridge sample app 253d4d3
Larry Karnowski Blue Ridge now supports headless testing running with jQuery 1.3.2!
* updated env.js (big thanks to Chris Thatcher & Jakub Suder!)
* changed Blue Ridge to use jQuery 1.3.2 by default for both headless and in-browser tests
* removed the caveat section from the README
* (note I'm leaving jQuery 1.2.6 in the repo to give folks the ability to choose either)
Commits on Jul 06, 2009
Larry Karnowski First stab at Blue Ridge testing itself.
  - Added the Screw.Unit tests to Blue Ridge.
  - Added a default rake task that runs its own tests.
  - Changed the command-line test-runner and shell-runner to
    run as plugin or stand-alone.
  - Changed the in-browser test-runner to run as plugin or
  - Changed the shell runner to load jQuery 1.3.2 (not 1.2.6).
  - Changed the shell runner to load the jQuery.print.js
    convenience functions.
  - Commented out the supposed-to-fail tests in Screw.Unit behaviors spec.
  - Note that one of the screw.print_spec tests fails in command-line mode.
    (Need an env.js update to fix, most likely?)
  - Big thanks to David Chelimsky for his advice on test suites
    testing themselves!
Larry Karnowski Renamed the "test/javascript" directory to "spec/javascripts" to be m…
…ore RSpec-y.
Larry Karnowski Added the Smoke test suite. 464859b
Commits on Jul 10, 2009
Larry Karnowski Refactoring to reduce the junk BlueRidge introduces into the namespace. 8223105
Commits on Jul 17, 2009
Larry Karnowski Updated the Smoke mocking library.
  - based on karnowski/smoke from today (2009-07-17)
  - includes Andy Kent's feature for mocking anonymous functions
  - includes Kris Chambers' many many refactorings and bug fixes
  - includes Kris Chambers' feature of throwing an argument
    mismatch error when an expectation is not matched
  - includes my fix for properly tearing down mocks on reset
Commits on Jul 31, 2009
Larry Karnowski and Jason Rudolph Tested & refactored Ruby code into a BlueRidge module
	- moved common rake and generator Ruby into a blue_ridge.rb file
	- added Micronaut & Mocha-based tests for BlueRidge Ruby code
	- default "rake" task runs both Ruby & JavaScript specs
	- fixed "rake js:fixtures" for Micronaut 'examples' directory
	- fixed bug where JavaScript specs would not generate in the Micronaut
	  'examples' directory
Commits on Aug 01, 2009
Larry Karnowski and Jason Rudolph nesting directories WIP; note that the arbitrary nesting of directori…
…es still doesn't work in-browser
Commits on Aug 07, 2009
Larry Karnowski removed some .DS_Store files 7e74465
Larry Karnowski Put the browser-specific and command-line-specific code into differen…
…t namespaces, so they can be loaded separately and tested.
Larry Karnowski Renamed test_runner_spec to blue_ridge_command_line_spec. 8edd1c4
Larry Karnowski Fixed the prefix that I broke earlier. Now top-level specs will work …
…in-browser, but second-level specs will fail.
Larry Karnowski Added spec for testing BlueRidge.Browser. 5ecd3e2
Larry Karnowski Moved the loaded flag to before we load the spec, in case it needs to…
… load BlueRidge again.
Larry Karnowski added a url correction to run arbitrarily-nested tests in the browser…
… too, but for now it has a variable you have to manually set
Larry Karnowski Currying is fun and profitable. d99fbd0
Larry Karnowski refactoring f8c5da2
Larry Karnowski moving fixture files 25f43a9
Commits on Aug 09, 2009
Larry Karnowski Making the fixtures directory a mirror image of the spec directory, i…
…nstead of having a "fixtures" directory in each subdirectory of the specs dir.
Larry Karnowski Automatically calculate the depth of the current file in the fixtures…
… directory, and adjust the relative paths for required files.
Larry Karnowski Refactoring. f291a3f
Larry Karnowski ugly fix to handle arbitrarily-nested tests in the browser 184143c
Larry Karnowski Adding tests to the (incredibly ugly) current implementation of deter…
…mining correct URLs for required files in-browser.
Commits on Aug 21, 2009
Larry Karnowski Calculating the files to require based on either the fixtures directo…
…ry or the source JS spec file.
Larry Karnowski Told env.js not to run files mentioned in script tags in the fixture …
Larry Karnowski Added the Blue Ridge mailing list (…
…eridgejs) to the README.
Larry Karnowski Updated to env.js 1.0 rc5.
  - Note this requires a new env-js.jar.
  - Note this also requires a new main Java class on the Rhino commandline.
  - I had to manually comment out logging and auto-loading of script files
    in the env.js code.  Didn't this used to be controlled by a $policy
Larry Karnowski Tweaked a regular expression in Screw.Unit's $.print tests that was t…
…oo browser-centric.
Larry Karnowski Added the RunCodeRun build page for Blue Ridge to the README. ceeefa4
Larry Karnowski Talked to thatcher and realized I didn't need both js.jar and env-js.…
Commits on Aug 22, 2009
Larry Karnowski Changed how we're initializing env.js to the newer style (which lets …
…me turn off logging and inline script loading). Also rolled back some manual changes to env.js I'd made for Blue Ridge.
Commits on Aug 28, 2009
Larry Karnowski Moved the contributors section into its own file.
  - Added lots more detail.
  - Added a thanks to hypomodern for his help
    on the deeply-nested directories feature.
Larry Karnowski Added descriptions to the rake tasks. (Thanks Nick Stenning!) 066dae7
Larry Karnowski Adapting Tristan Dunn's patch to the latest version of the code. db61edf
Larry Karnowski and Chris Redinger Fixing nested describe names in the command line.
  - Big thanks to Tristan Dunn for his patch!
  - Moving the exampleName impl into the
    BlueRidge.CommandLine object and adding specs.
  - Also added the fixture and teardownFixtures
    spec helper functions.
Larry Karnowski and Chris Redinger Refactor exampleName e29640d
Larry Karnowski and Chris Redinger Refactoring. d09d4bc
Larry Karnowski and Chris Redinger Decided against the ridiculous (but fun at the time) createNestedDesc…
…ribeDiv function.
Larry Karnowski and Chris Redinger Added Tristan Dunn and Chris Redinger as contributors on the nested-d…
…escribe bug fix.
Commits on Sep 11, 2009
Larry Karnowski Clarify requiring rubygems and micronaut (in case you don't have $RUB…
…YOPT or $GEM_HOME set). Thanks to Glen Ivey and Kristian Hanekamp for the head's up.
Commits on Sep 27, 2009
@karnowski karnowski WIP: Moving files into a vendor directory. Note that in-browser tests…
… aren't working.

  - This gives a clear delineation of what's "Blue Ridge proper" and what are just components re-used by Blue Ridge.
  - This sets the stage for letting folks override Blue Ridge components with their own changes/preferences.
  - This starts us on the road to shipping Blue Ridge as a stand-alone gem that does not require Rails.
Commits on Oct 02, 2009
@karnowski karnowski Changed in-browser tests to work with component files living under /v…
…endor directory.
@karnowski karnowski Moved component LICENSE files into vendor. 7b8aa33
@karnowski karnowski removed TODO.taskpaper f3bb54e
Commits on Oct 12, 2009
@karnowski karnowski Made the "rake js:shell" command work with env.js and jQuery moved to…
… the "vendor" directory.
@karnowski karnowski Updated to env.js 1.0.rc7.
  - Updated the env.rhino.js and env-js.jar files.
  - Note that the shell defined in env-js.jar doesn't
    define "quit()" anymore, so I had to change our
    `rake js:shell` script to implement its own "quit"
    and "exit" commands.
@karnowski karnowski Oops, some "$"'s had crept in where we meant "jQuery"'s. (issue #25, …
…thanks aiwilliams!)
Commits on Oct 20, 2009
@karnowski karnowski Mocking out all the Firebug console logging methods when running from…
… command line.
Commits on Jan 31, 2010
@coreyhaines coreyhaines Add red/green output be78f33
@coreyhaines coreyhaines Whoops, copy and paste error on last commit
- should learn to do a quick code review before push
@coreyhaines coreyhaines Added colorization to final output 2b5621b
Commits on Feb 05, 2010
@karnowski karnowski Added Corey to the contributors list. 987cd1d
Commits on Feb 12, 2010
@karnowski karnowski Added jQuery 1.4.1 file b68b29c
@karnowski karnowski Changed to use jQuery 1.4.1 0758974
Commits on Mar 05, 2010
@karnowski karnowski WIP: got the jquery 1.4.1 specs passing-ish, but the output is messed…
… up; not sure if it's only running one spec or if this is an event problem

  - removed the envjs-specific vendor/js-env.jar and went back to using the vendor/js.jar (regular Rhino)
  - had to drop Rhino down from normal optimization to opt level -1 to handle the htmlparser code in env.js
  - added an Envjs.wait() before loading jQuery and other libraries
@karnowski karnowski added whitespace c1b0d32
@karnowski karnowski Added jquery 1.4.2. 677d1ef
@karnowski karnowski Added another envjs.wait to let the specs run to completion. 8bfefea
@karnowski karnowski Upped the in-browser version of jQuery to 1.4.2. 9f839ff
Commits on Mar 12, 2010
@karnowski karnowski Updated env.js to which reduces the chances of a race-conditi…
…on crash, but it is not eliminating them entirely.
@karnowski karnowski Revert "Updated env.js to which reduces the chances of a race…
…-condition crash, but it is not eliminating them entirely."

This reverts commit ce96ccf.
@karnowski karnowski Revert "Revert "Updated env.js to which reduces the chances o…
…f a race-condition crash, but it is not eliminating them entirely.""

This reverts commit 3b6020a.
@karnowski karnowski Adding a Java sleep in hopes of getting the test to run on the Linux …
@karnowski karnowski Bumped up the sleep to something ridiculous. e0cebb3
@karnowski karnowski Somewhat less ridiculous, but still silly, sleep time. 7bb6dbc
@karnowski karnowski Fine-tuning the Java sleep that lets env.js catch-up. 80c47ee
@karnowski karnowski Fine-tuning the Java sleep that lets env.js catch-up. d72a484
@karnowski karnowski Bumping up the sleep time, yet again. 7853c54
@karnowski karnowski Okay, evidently a 1-second sleep is the right answer. 21c9f94
Commits on Mar 14, 2010
@karnowski karnowski Updated to env.js and removed the 1-second sleep. be33098
Commits on Apr 30, 2010
@rsanheim rsanheim Remove RunCodeRun links .... **sniff** 9ff17a3
Commits on Jul 16, 2010
@karnowski karnowski Added a "no longer officially supported" message to the README. 55f9c8b
@karnowski karnowski Added the "no longer supported" message to the top of the README. 7ba7308