You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your unit tests should ensure each part of your code works as expected on its own.
71
70
```
72
71
73
-
###Integration tests
72
+
## Integration tests
74
73
75
74
Integration tests involve testing how parts of your package work together or integrate. Integration tests can be compared to connecting a bunch of puzzle pieces together to form a whole picture. Integration tests focus on how different pieces of your code fit and work together.
76
75
@@ -122,7 +121,7 @@ together, do so as expected.
122
121
123
122
```
124
123
125
-
###End-to-end (functional) tests
124
+
## End-to-end (functional) tests
126
125
127
126
End-to-end tests (also referred to as functional tests) in Python are like comprehensive checklists for your software. They simulate real user end-to-end workflows to make sure the code base supports real life applications and use-cases from start to finish. These tests help catch issues that might not show up in smaller tests and ensure your entire application or program behaves correctly. Think of them as a way to give your software a final check before it's put into action, making sure it's ready to deliver a smooth experience to its users.
128
127
@@ -141,7 +140,7 @@ End-to-end test also test how a program runs from start to finish. A tutorial th
141
140
For scientific packages, creating short tutorials that highlight core workflows that your package supports, that are run when your documentation is built could also serve as end-to-end tests.
142
141
```
143
142
144
-
###Comparing unit, integration and end-to-end tests
143
+
## Comparing unit, integration and end-to-end tests
145
144
146
145
Unit tests, integration tests, and end-to-end tests have complementary advantages and disadvantages. The fine-grained nature of unit tests make them well-suited for isolating where errors are occurring. However, unit tests are not useful for verifying that different sections of code work together.
0 commit comments