Skip to content
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

Increase coverage to 75% or more #534

Closed
aashish24 opened this issue Feb 17, 2016 · 12 comments
Closed

Increase coverage to 75% or more #534

aashish24 opened this issue Feb 17, 2016 · 12 comments

Comments

@aashish24
Copy link
Member

No description provided.

@aashish24 aashish24 added this to the Version 1.0 milestone Feb 17, 2016
@aashish24
Copy link
Member Author

Ref: #329

@aashish24
Copy link
Member Author

aashish24 commented Feb 17, 2016

  • ChoroplethFeature - Aashish
  • Graph - Jon
  • FileReader - Jon
  • GeomFeature - Aashish (will remove it)
  • JSONReader - Jon?
  • LineFeature - David
  • Contour - David
  • WiggleMaps - Jon
  • GraphFeature - Jon
  • Utils - Jon
  • LegendWidget - ?

@aashish24 aashish24 changed the title Add more unit tests and test examples Add more unit tests and increase coverage Feb 17, 2016
@manthey
Copy link
Contributor

manthey commented Oct 20, 2016

I notice that we have a clock module which doesn't have tests. It is instantiated with a map, but then we don't seem to do anything with it. Obviously, some consumer of geojs might use it, but we could get rid of it before we release v1.0.

@aashish24
Copy link
Member Author

I notice that we have a clock module which doesn't have tests. It is instantiated with a map, but then we don't seem to do anything with it. Obviously, some consumer of geojs might use it, but we could get rid of it before we release v1.0.

I believe clock is used for animations which are time based. We had one example in the past.

@aashish24
Copy link
Member Author

My preference would be to keep it, add an example and test unless the features provided by it are replaced by some other module.

@manthey
Copy link
Contributor

manthey commented Oct 20, 2016

You are right; the dynamicData example uses it.

@jbeezley
Copy link
Contributor

There are integration tests for it in d3Animation. The class itself was originally intended to be used for time synchronization in animations.

I don't think we've ever found a use for it in production, which IMO is a good metric for the usefulness of an API. The 1.0 tag is a good opportunity to rethink API decisions that didn't pan out.

@aashish24
Copy link
Member Author

I don't think we've ever found a use for it in production, which IMO is a good metric for the usefulness of an API. The 1.0 tag is a good opportunity to rethink API decisions that didn't pan out.

+1

@aashish24 aashish24 changed the title Add more unit tests and increase coverage Increase coverage to 75% or more Nov 3, 2016
@aashish24
Copy link
Member Author

@jbeezley @manthey should we close this since now we are > 90%?

@manthey
Copy link
Contributor

manthey commented May 15, 2017

We still have one source file that is essentially uncovered: the ui/legendWidget.js is only got 8% coverage. I'd like to see it tested.

@aashish24
Copy link
Member Author

We still have one source file that is essentially uncovered: the ui/legendWidget.js is only got 8% coverage. I'd like to see it tested.

makes sense. Would it be @jbeezley that was planning to increase the coverage of legendWidget?

@aashish24
Copy link
Member Author

@jbeezley @manthey I am thinking of closing this, we can create specific issues related to low coverage on certain files but feel free to re-open this if you think we should.

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

No branches or pull requests

3 participants