-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better testing for different features, especially interface code #119
Comments
@jywarren I can try breaking it to first timer issue |
@jywarren Do you have any other UI tests in mind? I will create FTOs for the same |
@jywarren We have basic UI tests, do you have any more in mind? |
We might add one to try to simulate the steps described in #105 -- i.e. move to a location using a Leaflet |
Will add a test for isBlurred as soon as the PR is merged |
@jywarren adding test for newly added scale!! |
I also just turned on test coverage reporting in CodeClimate! |
This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting or reposting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled. Or, if this is not your first time, try to solve it yourself!
We're occasionally seeing features get broken by later additions, especially UI features which are harder to test. But we do have UI tests in Jasmine:
leaflet-blurred-location/spec/javascripts/ui_spec.js
Lines 4 to 14 in c7f4ebb
Let's add some more -- checking that, for example, different fields update correctly when the map is panned. Let's look at the events that trigger behaviors in our interface code:
leaflet-blurred-location/src/ui/Interface.js
Line 38 in c7f4ebb
And add some UI tests to ensure these actually happen -- that way our code will be less brittle when new changes are added!
Any help with this much appreciated!
The text was updated successfully, but these errors were encountered: