Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Jasmine, JSCoverage workshop
JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/jasmine-1.2.0
scripts
spec
src
.gitignore
HomePage.html
README.md
SpecRunner.html

README.md

Installation Instructions (Mac):

  • Verify that you have web sharing enabled. System Preferences -> Sharing -> Web Sharing
  • cd to ~/Sites
  • git clone git://github.com/dotnet236/jasmine-jscoverage-workshop.git
  • git checkout presentation

  • open http://localhost/~yourusername/jasmine-jscoverage-workshop/SpecRunner.html

  • Observe a rendered but blank page.

  • Create email button jQuery plugin which does not alert

  • Create email button spec which expects an alert
  • Add plugin js file and spec js file to SpecRunner.html
  • open http://localhost/~yourusername/jasmine-jscoverage-workshop/SpecRunner.html
  • Observe the failed spec

  • Add alert functionality to email button jQuery plugin.

  • open http://localhost/~yourusername/jasmine-jscoverage-workshop/SpecRunner.html
  • Observe the passing spec

  • ./scripts/jscoverage_run

  • jscoverage src tmp
  • Update SpecRunner.html to use the tmp directory for email button jquery plugin.
  • open http://localhost/~yourusername/jasmine-jscoverage-workshop/tmp/jscoverage.html
  • Paste http://localhost/~yourusername/jasmine-jscoverage-workshop/SpecRunner.html
  • Click the stats tab
  • Observe the coverage statistics
Something went wrong with that request. Please try again.