Skip to content

HTTPS clone URL

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
85fc75f
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.
1e2ddad
Lawrence Karnowski cleaning up generators; moved 'test/javascripts' directory to 'test/j…
…avascript' to look more Rails-y
7104ece
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
7ad62f5
Commits on Nov 20, 2008
Larry Karnowski Fixed a bug where the command-line test runner wasn't running specifi…
…c tests anymore.
b1d5198
Larry Karnowski Updated the application.html template for the generator to have only …
…the code necessary and no more.
11a12b2
Larry Karnowski Fixed a bug in JSSpec that was causing nested arrays not to match cor…
…rectly with some_array.should(equal(some_array)).
db179a2
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.)
7c6344a
Larry Karnowski Added a "javascript_spec" generator.
33f5294
Larry Karnowski Whitespace-only change. (Fixed spacing in the JS spec files for the g…
…enerator.)
fd93261
Larry Karnowski Fixed a problem where a java.lang.String was creeping out of the API …
…instead of a Javascript string.
523bdf4
Commits on Nov 25, 2008
Larry Karnowski Added a "beInstanceOf" matcher. Added a helpful "debug(message)" meth…
…od for browser/Rhino-agnostic output.
974de47
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)
30c6abc
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.
b5f0496
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.
6fe2a8e
Larry Karnowski Optionally call the Rhino shell with rlwrap if it's installed. Added …
…shortcuts for "exit" and "quit" from inside the shell.
062fe5d
Larry Karnowski Cleaning up JavaScript shell rake task (including moving it to a simp…
…ler "rake js:shell").
13d071b
Larry Karnowski taskpaper
eb1eb2e
Larry Karnowski added support for running the javascript tests from either the "test/…
…javascript", "spec/javascript", or "examples/javascript" directories.
f3be48e
Commits on Apr 06, 2009
@rsim rsim generators use spec/javascripts directory if spec directory is presen…
…t or test/javascript directory otherwise
7d6c3ec
@rsim rsim modified javascript_testing.js and test_runner.js
added jquery-1.3.2.js
d5ab1f9
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).
6393f7a
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).
c5a8cd5
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
853383e
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.
a40ecd5
Larry Karnowski Improved the generators.
 - removed some Prototype stuff
 - fixed some wording
 - fixed the spec template to properly require the correct JavaScript files
8f2d90c
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.
300345c
Larry Karnowski Explicitly use jQuery internally to make support for Prototype in spe…
…cs possible.
c8d048a
Commits on Apr 14, 2009
Larry Karnowski Changing the README over to Markdown and expanding. Still miles to go…
… before I sleep.
978739f
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 envjs.com 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 <larry@thinkrelevance.com>
de55d06
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)
b2801ef
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
    stand-alone.
  - 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!
6199fc5
Larry Karnowski Renamed the "test/javascript" directory to "spec/javascripts" to be m…
…ore RSpec-y.
9f4bc2e
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
b87569e
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
88fe373
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
49f3b9c
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.
f970c66
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.
9a59cf4
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.
57d4759
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
ec69836
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.
69e6578
Larry Karnowski Automatically calculate the depth of the current file in the fixtures…
… directory, and adjust the relative paths for required files.
3d94de3
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.
55df5ec
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.
015e97f
Larry Karnowski Told env.js not to run files mentioned in script tags in the fixture …
…files.
da314b9
Larry Karnowski Added the Blue Ridge mailing list (http://groups.google.com/group/blu…
…eridgejs) to the README.
d2436c4
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
    variable?
949e994
Larry Karnowski Tweaked a regular expression in Screw.Unit's $.print tests that was t…
…oo browser-centric.
e16e992
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.…
…jar.
40ccd71
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.
7617cd8
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.
ff45cee
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.
c90dbc6
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.
a940a77
Larry Karnowski and Chris Redinger Added Tristan Dunn and Chris Redinger as contributors on the nested-d…
…escribe bug fix.
83a4c8f
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.
ee89cd7
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.
e6ea355
Commits on Oct 02, 2009
@karnowski karnowski Changed in-browser tests to work with component files living under /v…
…endor directory.
6194e62
@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.
0033299
@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.
6128c60
@karnowski karnowski Oops, some "$"'s had crept in where we meant "jQuery"'s. (issue #25, …
…thanks aiwilliams!)
ac5a7a1
Commits on Oct 20, 2009
@karnowski karnowski Mocking out all the Firebug console logging methods when running from…
… command line.
e0fada6
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
256e432
@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
a9dbdfb
@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 1.2.0.5 which reduces the chances of a race-conditi…
…on crash, but it is not eliminating them entirely.
ce96ccf
@karnowski karnowski Revert "Updated env.js to 1.2.0.5 which reduces the chances of a race…
…-condition crash, but it is not eliminating them entirely."

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

This reverts commit 3b6020a.
db44021
@karnowski karnowski Adding a Java sleep in hopes of getting the test to run on the Linux …
…JVM.
889fcc1
@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 1.2.0.6 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