question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
williastercommented, Jan 29, 2021

We currently use jest for unit tests and I think this would be true even if we moved to react-testing-library since jest provides the runner + the assertion framework, not the react manipulations.

Also an update, we now use happo for visual testing of all gallery examples as added in #1030

1reaction
williastercommented, Nov 6, 2020

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 for visx 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found