Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Test environment #123

Merged
merged 4 commits into from

2 participants

@iirvine

Hello! I thought it might be about time for this plugin to have some test coverage. To that end I've gone ahead and stubbed out a little test environment.

Mostly just following Leaflet's lead here - Mocha + expect + sinon + karma. npm install and npm test should be all that's needed to get it up and running. All that's left now is actually writing some tests....

iirvine added some commits
@iirvine iirvine add dev dependencies to package.json 19a1490
@iirvine iirvine Setting up test environment (Karma + Mocha) for Leaflet.Draw.
	-added Leaflet and testing dependencies to package.json
	-added spec folder + test libraries
	-added 'test' task to build.js and package.json
	-added karma config file (spec/karma.conf.js) and some miscellaneous spec helpers (leaflet-draw-include.js, leaflet-include.js, leaflet-deps.js)
4bdc212
@iirvine iirvine get rid of unneeded leaflet related dependency files, just use the on…
…es from node_modules
0dd07e1
@iirvine iirvine put karma.conf back into CI mode ddfa1c8
@jacobtoye
Owner

Awesome! you rock @iirvine

I've been spread pretty thin lately with work commitments, however look forward to getting some test coverage!

@jacobtoye jacobtoye merged commit 96a981b into Leaflet:master
@iirvine iirvine deleted the iirvine:test_env branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 8, 2013
  1. @iirvine
  2. @iirvine

    Setting up test environment (Karma + Mocha) for Leaflet.Draw.

    iirvine authored
    	-added Leaflet and testing dependencies to package.json
    	-added spec folder + test libraries
    	-added 'test' task to build.js and package.json
    	-added karma config file (spec/karma.conf.js) and some miscellaneous spec helpers (leaflet-draw-include.js, leaflet-include.js, leaflet-deps.js)
  3. @iirvine
  4. @iirvine
Something went wrong with that request. Please try again.