-
Notifications
You must be signed in to change notification settings - Fork 395
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
Unit tests #144
Comments
@mike-robertson: I'd love to work on this. I'm very much aligned to TDD and unit testing. Do you have a testing framework in mind? I've used mocha, chai and enzyme to test components. I also had a really bad time trying to use Jest. |
odota/core uses mocha. I think it'd be helpful to use the same one on both. |
I agree that mocha/chai/enzyme is the easiest testing 'stack' to use with react. |
We also need e2e testing, http://nightwatchjs.org/ |
https://www.browserstack.com/ is another option. I've never tried setting this kind of thing up, so feel free to tackle this if you have any experience. |
@howardchung: As far as I understand, browserstack is a paid service, do we have enough bandwidth to use it? |
They are free for open source projects (need to submit a request): |
@Roshanjossey are you still interested in improving test coverage? @mike-robertson laid out the foundation and wrote a couple of quick tests, but the majority of components still don't have them. |
https://facebook.github.io/jest/ is worth considering |
@howardchung, @mike-robertson, I'm sorry I couldn't take a look at this earlier. I'll get started on this. How should I divide work? I'd like to submit PRs in smaller chunks rather than doing it all at once |
Maybe just add one test for one component at a time. |
I wrote on discord, but might be better to say it here. We should probably be using selenium as our web driver now that browserstack is looking to support us https://www.browserstack.com/automate |
Hello everyone, |
@Tb0 would love to see E2E tests added! @masad-frost set up an account for us on BrowserStack, let me know if you need access to that. Also apparently Chrome 59 has a headless mode which is supposed to make CI testing easier. |
Now that the project is a standard |
@dartharaknus suggests https://www.chromaticqa.com/ for component testing |
I suggest use puppeteer, but it's not unit-test its E2E test. You can compare screenshots like in Codesandbox |
I think that's more #1596 |
We have a few e2e tests. . . not sure we'll get more than that but happy to accept contributions |
We need to add unit tests since the code base is becoming quite large, and since we all have our own 'domains' that we work on, changes to components across domains can cause subtle bugs (if we don't have unit tests). I think that the #1 priority after completing MVP should be to go back and add useful unit tests for everything since we don't have any dedicated QA contributors or QA process.
The text was updated successfully, but these errors were encountered: