-
Notifications
You must be signed in to change notification settings - Fork 226
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
Node and Javascript guidelines file #59
Comments
Some suggestions (most of these are currently used in either js-ipfs-api or station)
Also I'm suggesting to set up automated release process + auto generated changelogs in the same style as I have done for karma: https://github.com/karma-runner/karma/blob/master/gruntfile.js#L143-L152 |
Also I forgot, greenkeeper all the repos! |
+1 to all of the above. Also would be nice to measure test coverage, would be a good column for ipfs-inactive/project-repos#1 :) are there other code quality metrics we'd like to measure? |
Put these notes into a file. @harlantwood, not that I can think of. |
|
👎 for coverage, I've got more experience with that than I'd prefer, and it ends up taking a lot of time to set up and not being very beneficial in my experience. |
coverage is nice to have and lets us know how much code we had that we don't check, we don't need to enforce 100% code coverage (for now) |
I haven't tried it, but perhaps https://coveralls.io/ makes test coverage reporting easier... It seems quite popular and is free for open source. |
@harlantwood it's nice for displaying the stats but you still have to do all the hard work of actually getting your test suite to generate those coverage reports |
having a measure for code coverage is important for testing.
cc @chriscool for his thoughts
|
I don't know much about the js tools. In general I think it is nice to be able to check that all or most of the big features have at least a few tests. On the other hand I agree that it's probably not worth it to try to have numbers to be able to say for example that 85% of the code paths are tested. |
We should have a nodejs and javascript guidelines file to link to from all IPFS js repositories. I can't seem to find a good example of any JS guidelines in our current repositories (anyone know of one?), so I think we should hash out what standards we want here, so that we can add that to an eventual file, like we did with Go in #58.
Open questions:
I could build us a comprehensive styleguide given time if needed; plenty of good examples on RichardLitt/awesome-styleguides to work from.
cc @diasdavid @jbenet
The text was updated successfully, but these errors were encountered: