Integration Testing Guide
See original GitHub issueWe should have a guide for adding integration tests to a Dash repo.
Right now the only real resource is reading the previous code and figuring it out.
A few points I think this guide should have, let me know if there are more!
- Installing Selenium and the Chrome Driver tools. I have a gist of that process here that we could modify.
- Intro to the testing lifecycle methods
setUpClass
,tearDownClass
,setUp
,tearDown
so a user understands what happens before each test, after each test, once before all the tests, and once after all the tests - What is percy and how to take percy screenshots
- Simple example of a test (https://github.com/plotly/dash/blob/f309cc2b8a45644004db98ffcaf0d9a72870c27d/tests/test_integration.py#L24)
- Links to selenium resources (http://selenium-python.readthedocs.io/), although I really hate these docs and find it more helpful to just read the code (https://github.com/SeleniumHQ/selenium/tree/master/py). Maybe we can
- Link to https://docs.python.org/3.6/library/unittest.html#module-unittest, maybe a separate list of the most useful
self.assert...
functions.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:8 (7 by maintainers)
Top Results From Across the Web
What is integration testing? The basics explained!
Integration testing allows dividing code into blocks that consist of several units and check the parts of software gradually before assembling ...
Read more >What is Integration Testing (Tutorial ... - Software Testing Help
Integration testing is a testing in which one or two modules which are unit tested are integrated to test and verification is done...
Read more >What is Integration Testing? | How to perform ... - Edureka
Integration Testing is a level of software testing where individual units are combined and tested to verify if they are working as they...
Read more >Integration Testing: What is, Types with Example - Guru99
Integration Testing is defined as a type of testing where software modules are integrated logically and tested as a group.
Read more >6 best practices for integration testing with continuous ...
How integration testing works with CI and DevOps · Run integration tests until something fails · Determine what needs to be added or...
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 Free
Top 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
Great idea! Would love to have this for
pytest
as well, not onlyunitTest
.most of the discussion in this issue is included in https://dash.plot.ly/testing