Skip to content

Conversation

edjafarov
Copy link
Contributor

to use test coverage you need to:
$ cd node_modules
$ git clone git://github.com/testacular/testacular.git
$ cd testacular
$ sudo npm install
$ grunt
$ cd ../..
$ jake test --cov

@mourner
Copy link
Member

mourner commented Feb 2, 2013

Build failed, because SpecHelper needs to be run before other specs.

@edjafarov
Copy link
Contributor Author

Thanks for tip. Will fix it asap!

On 02.02.2013, at 12:56, Vladimir Agafonkin notifications@github.com
wrote:

Build failed, because SpecHelper needs to be run before other specs.


Reply to this email directly or view it on
GitHubhttps://github.com//pull/1340#issuecomment-13027782.

@edjafarov
Copy link
Contributor Author

not sure why build doesn't show status but it should work

@mourner
Copy link
Member

mourner commented Feb 2, 2013

I think it's because it can't be automatically merged (there are conflicts). Thanks!

@edjafarov
Copy link
Contributor Author

will you resolve those? Or should I?

@mourner
Copy link
Member

mourner commented Feb 2, 2013

I'll merge manually on Monday.

@edjafarov
Copy link
Contributor Author

👍

@edjafarov
Copy link
Contributor Author

--------------------------------------+-----------+-----------+-----------+-----------+
File | % Stmts |% Branches | % Funcs | % Lines |
--------------------------------------+-----------+-----------+-----------+-----------+
src/ | 90 | 50 | 100 | 90 |
Leaflet.js | 90 | 50 | 100 | 90 |
src/control/ | 64 | 44.92 | 50.98 | 64.37 |
Control.Attribution.js | 56.52 | 36.36 | 63.64 | 58.14 |
Control.Layers.js | 78.18 | 77.08 | 62.5 | 78.18 |
Control.Scale.js | 31.58 | 10 | 20 | 31.58 |
Control.Zoom.js | 80.65 | 30 | 50 | 80.65 |
Control.js | 44 | 25 | 50 | 44 |
src/core/ | 77.88 | 68.82 | 75.61 | 78.54 |
Browser.js | 43.75 | 62.16 | 100 | 43.75 |
Class.js | 100 | 87.5 | 88.89 | 100 |
Events.js | 89.23 | 74.24 | 100 | 89.23 |
Handler.js | 54.55 | 25 | 75 | 66.67 |
Util.js | 64.79 | 58.97 | 63.64 | 64.79 |
src/dom/ | 22.83 | 22.6 | 31.25 | 23.33 |
DomEvent.DoubleTap.js | 23.91 | 12.5 | 25 | 23.91 |
DomEvent.MsTouch.js | 1.49 | 0 | 0 | 1.52 |
DomEvent.js | 50.59 | 44.74 | 50 | 51.85 |
DomUtil.js | 38.46 | 31.18 | 64.71 | 39.08 |
Draggable.js | 8.89 | 6.33 | 18.18 | 9.52 |
PosAnimation.Timer.js | 3.45 | 10 | 0 | 3.57 |
PosAnimation.js | 3.33 | 0 | 0 | 3.57 |
src/geo/ | 51.81 | 46.03 | 45 | 52.5 |
LatLng.js | 67.74 | 75 | 66.67 | 70 |
LatLngBounds.js | 42.31 | 32.56 | 35.71 | 42 |
src/geo/crs/ | 76.47 | 100 | 57.14 | 76.47 |
CRS.EPSG3395.js | 100 | 100 | 100 | 100 |
CRS.EPSG3857.js | 50 | 100 | 0 | 50 |
CRS.EPSG4326.js | 100 | 100 | 100 | 100 |
CRS.Simple.js | 50 | 100 | 0 | 50 |
CRS.js | 85.71 | 100 | 75 | 85.71 |
src/geo/projection/ | 40.91 | 0 | 33.33 | 40.91 |
Projection.LonLat.js | 33.33 | 100 | 0 | 33.33 |
Projection.Mercator.js | 8.33 | 0 | 0 | 8.33 |
Projection.SphericalMercator.js | 100 | 100 | 100 | 100 |
Projection.js | 100 | 100 | 100 | 100 |
src/geometry/ | 62.76 | 49.02 | 70.45 | 62.56 |
Bounds.js | 86.49 | 76.67 | 80 | 86.11 |
LineUtil.js | 56.79 | 36 | 54.55 | 56.79 |
Point.js | 71.43 | 58.33 | 72.22 | 71.43 |
PolyUtil.js | 8.7 | 0 | 0 | 8.7 |
Transformation.js | 100 | 50 | 100 | 100 |
src/layer/ | 4.12 | 0 | 0 | 4.21 |
FeatureGroup.js | 7.14 | 0 | 0 | 7.14 |
GeoJSON.js | 4.76 | 0 | 0 | 4.84 |
ImageOverlay.js | 4.55 | 0 | 0 | 4.55 |
LayerGroup.js | 4.88 | 0 | 0 | 5 |
Popup.js | 2.61 | 0 | 0 | 2.7 |
src/layer/marker/ | 50.72 | 28.23 | 42.55 | 51.47 |
DivIcon.js | 18.18 | 0 | 0 | 18.18 |
Icon.Default.js | 73.68 | 41.67 | 100 | 73.68 |
Icon.js | 72.97 | 45.45 | 75 | 72.97 |
Marker.Drag.js | 13.33 | 0 | 14.29 | 13.33 |
Marker.Popup.js | 4.55 | 0 | 0 | 4.55 |
Marker.js | 57.28 | 31.25 | 50 | 59 |
src/layer/tile/ | 43.15 | 32.81 | 43.4 | 43.51 |
TileLayer.Canvas.js | 9.52 | 0 | 0 | 9.52 |
TileLayer.WMS.js | 8.7 | 0 | 0 | 8.7 |
TileLayer.js | 50.76 | 36.84 | 58.97 | 51.28 |
src/layer/vector/ | 32.37 | 20.83 | 31.78 | 32.85 |
Circle.js | 32.26 | 0 | 41.67 | 32.26 |
CircleMarker.js | 20 | 100 | 0 | 20 |
MultiPoly.js | 35 | 0 | 28.57 | 35 |
Path.Popup.js | 4.55 | 0 | 0 | 4.55 |
Path.SVG.js | 61.63 | 37.04 | 56.25 | 63.1 |
Path.VML.js | 4.84 | 14.71 | 0 | 4.92 |
Path.js | 57.58 | 33.33 | 50 | 57.58 |
Polygon.js | 6.67 | 0 | 0 | 7.14 |
Polyline.Edit.js | 9.09 | 10 | 15 | 9.17 |
Polyline.js | 64.86 | 45.83 | 68.75 | 65.75 |
Rectangle.js | 28.57 | 100 | 0 | 28.57 |
src/layer/vector/canvas/ | 6.36 | 13.24 | 5.26 | 6.48 |
Circle.Canvas.js | 16.67 | 25 | 0 | 16.67 |
Path.Canvas.js | 5.06 | 13.04 | 6.67 | 5.19 |
Polygon.Canvas.js | 8.33 | 12.5 | 0 | 8.33 |
Polyline.Canvas.js | 7.69 | 10 | 0 | 7.69 |
src/map/ | 52.43 | 42.86 | 47.62 | 54.26 |
Map.js | 52.43 | 42.86 | 47.62 | 54.26 |
src/map/anim/ | 10.28 | 11.11 | 12.5 | 10.58 |
Map.PanAnimation.js | 18.18 | 7.41 | 16.67 | 18.18 |
Map.ZoomAnimation.js | 6.76 | 13.89 | 10 | 7.04 |
src/map/ext/ | 30.95 | 0 | 30 | 30.95 |
Map.Control.js | 84.62 | 100 | 75 | 84.62 |
Map.Geolocation.js | 4.55 | 0 | 0 | 4.55 |
Map.Popup.js | 14.29 | 0 | 0 | 14.29 |
src/map/handler/ | 26.87 | 8.33 | 23.81 | 27.84 |
Map.BoxZoom.js | 22.58 | 0 | 33.33 | 24.14 |
Map.DoubleClickZoom.js | 66.67 | 100 | 33.33 | 66.67 |
Map.Drag.js | 20.93 | 12 | 10 | 20.93 |
Map.Keyboard.js | 54.35 | 10 | 36.36 | 54.35 |
Map.ScrollWheelZoom.js | 17.86 | 0 | 20 | 18.52 |
Map.TouchZoom.js | 8.51 | 8.33 | 14.29 | 9.3 |
--------------------------------------+-----------+-----------+-----------+-----------+
All files | 38.49 | 30.35 | 37.83 | 39.12 |
--------------------------------------+-----------+-----------+-----------+-----------+

@danzel
Copy link
Member

danzel commented Feb 3, 2013

I had to install grunt with:

npm install -g grunt
npm install -g grunt-cli

To get grunt to run.

@mourner
Copy link
Member

mourner commented Feb 3, 2013

@danzel thanks! Grunt wont be needed once the master testacular version gets to stable though.

@edjafarov
Copy link
Contributor Author

@danzel @mourner nice catch though. If you expect people to use code coverage it might make sense to put all the details. Since as I know testacular releases are not regular and seems like they are in the middle of refactoring(*I have a pull req there and this weekend I was asked to refactor it in plugin:)), so sable release could happen tommorow or in 6 month :(

@danzel
Copy link
Member

danzel commented Feb 4, 2013

One issue I had with testacular is that after I reconfigured it for continuous mode, it would run initially and rerun when I saved. But the reruns would only rerun the failing tests, so if I made one of the tests that was passing fail it wouldn't be picked up.
@edjafarov Any idea if I've misconfigured it or if there is an option to have it re-run all the tests on save?

mourner added a commit that referenced this pull request Feb 4, 2013
@mourner mourner merged commit e4492b6 into Leaflet:master Feb 4, 2013
@mourner
Copy link
Member

mourner commented Feb 4, 2013

Merged, nice work Eldar! Had to manually fix whitespace though (2-space -> tabs).

@danzel
Copy link
Member

danzel commented Feb 18, 2013

To get PhantomJS going on windows, download it from http://phantomjs.org/download.html
And extract to: C:\Windows\Program Files\PhantomJS
So you have: C:\Windows\Program Files\PhantomJS\phantomjs.exe

I'll write these up in contributing.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants