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.

Integration Testing Guide

See original GitHub issue

We 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!

  1. Installing Selenium and the Chrome Driver tools. I have a gist of that process here that we could modify.
  2. 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
  3. What is percy and how to take percy screenshots
  4. Simple example of a test (https://github.com/plotly/dash/blob/f309cc2b8a45644004db98ffcaf0d9a72870c27d/tests/test_integration.py#L24)
  5. 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
  6. 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:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gwdekkercommented, Jan 15, 2019

Great idea! Would love to have this for pytest as well, not only unitTest.

0reactions
byronzcommented, Jul 3, 2019

most of the discussion in this issue is included in https://dash.plot.ly/testing

Read more comments on GitHub >

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

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