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
No tests? #73
Comments
That is the first thing that I noticed. A component as complex as this without tests is just asking for trouble. |
Yep ... I am already having trouble running Jest tests with a Rect component I own which is including react-select within :( |
I can actually understand some things not having unit tests depending on the unit test setup. I use Mocha/Chai/JSDom to unit test my code and I can't unit test any visual based stuff but this component definitely has a lot of none-visual stuff that can be unit tested. |
You can unit-test visual based React stuff with Jest very well! And the visual based stuff you are referring to, are mostly called end to end tests (aka E2E). Just run a standalone selenium server in a gulp task, then run a middleware server and at last have a Jasmine test runner. It works well for my other projects. All I am saying here is that having no tests is not good. I do not like the idea to ship code without enough test coverage, especially for enterprise apps we are developing here. |
I would really appreciate help implementing tests for this component. I have a set of manual processes that I run through to test the component before every release (based on the example configurations), it would certainly take less work to merge PRs and manage releases if our tests were automated. @binarykitchen you mention having this setup in place for other projects - can you help get them set up here as well? Also @ryanzec is correct, there are several things that are non-visual and could easily be unit tested. |
@JedWatson Use the gulp-jest plugin for unit tests. Works like a charm. |
@binarykitchen I probably wasn't clear - I'm managing a heap of open source projects at the moment between React stuff, KeystoneJS and TouchstoneJS as well as a having a full time job. If someone else is able to contribute unit tests for this component I would really appreciate it, otherwise I'll get to them when I can :) |
fair enough - it is just the fact that code without test is never good. always enforce yourself never to ship code without test ;) |
I've added Jest framework into react-select. Pending PR. #107 |
Basic tests are in - more to come. |
good, way to go |
Always could use improvement. This issue isn't really quantifiable beyond a test count being > 1, so I'm closing. |
Update to JedWatson/react-select v1.0.0-rc.4
That's a nice component but how come there are no tests?
The text was updated successfully, but these errors were encountered: