Testing approaches in this project
See original GitHub issue@williaster @hshoff I have a few questions about testing approaches in this project. I understand Airbnb probably has its coding tools standards but I was wondering how strict they are ? 😃 For example, would it be possible to migrate from enzyme to a much better Testing Library. I also noticed use of shallow rendering in tests which is not the best approach. There is also cypress-react-unit-test which for projects like visx
could be a nice option to consider as well, maybe not for all but some of the interactive tests because it renders in real browser. Could you share your thoughts ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Test Approach - Tutorialspoint
A test approach is the test strategy implementation of a project, defines how testing would be carried out. Test approach has two techniques:....
Read more >Learn the List of Various Test Approaches - eduCBA
Guide to Test Approaches. Here we discuss the List of Various Test Approaches that can be used for the project and How does...
Read more >What is Test Approach? Different Techniques and Types
A test approach is the test strategy implementation of a project which defines how testing will be carried out, defines the strategy.
Read more >How To Write Test Strategy Document (With Sample Test ...
Write down a test approach for your project. Clearly, mention what type of testing you are going to conduct? i.e., Functional testing, UI ......
Read more >11 Methods for Software Testing Projects | Indeed.com
11 methods for testing projects · 1. Test throughout the development process · 2. Make testable software requirements · 3. Design a testing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We currently use
jest
for unit tests and I think this would be true even if we moved toreact-testing-library
sincejest
provides the runner + the assertion framework, not thereact
manipulations.Also an update, we now use happo for visual testing of all gallery examples as added in #1030
Hey @m0t0r thanks for creating this issue 🙏 (and sorry about the complexities of this as it relates to the
react@17
upgrade in #872, yak shaving for sure)Generally Airbnb is moving toward using
react-testing-library
(which you’ve linked to), so I think we are supportive of moving in that direction forvisx
over enzyme. Currently I’m not sure we have the bandwidth to do this migration ourselves, so I’ll tag this issue with👋 help wanted
. If you or others are interested in helping with this we would happily review any PRs 👀 .As far as cypress / visual testing, we are planning to add screenshot testing with happo 🦛 soon (my plan is before end of 2020) for the
demo
package so that we can better-detect visual changes.Not sure if @hshoff has any other thoughts to add.