Difference between revisions of "Mocking Frameworks"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== Requirements == | == Requirements == | ||
* Operating system: | * Operating system: | ||
* Packages: | * Packages: unittest.mock (Python) | ||
org.mockito.Mockito(Java) | |||
Moq(.NET) | |||
In order to complete these steps, you must have followed [[Some Other Documentation]] before. | In order to complete these steps, you must have followed [[Some Other Documentation]] before. | ||
Line 12: | Line 15: | ||
== Description == | == Description == | ||
=== | === Mocking === | ||
Enter these commands in the shell | Enter these commands in the shell | ||
Line 19: | Line 22: | ||
echo bar | echo bar | ||
=== | === Mocking Frameworks === | ||
Make sure to read | Make sure to read |
Revision as of 22:35, 23 January 2023
Summary
This document gives basic insights about Mocking and Mocking Frameworks with their usages, advantages and disadvantages. Also, some code examples showing mock testing demo using Frameworks like Mock(Python), Mockito(Java) and Moq(.NET) are also given.
Requirements
- Operating system:
- Packages: unittest.mock (Python)
org.mockito.Mockito(Java) Moq(.NET)
In order to complete these steps, you must have followed Some Other Documentation before.
Description
Mocking
Enter these commands in the shell
echo foo echo bar
Mocking Frameworks
Make sure to read
- War and Peace
- Lord of the Rings
- The Baroque Cycle
Used Hardware
Device to be used with this documentation Maybe another device to be used with this documentation
Courses
- A course where this documentation was used (2017, 2018)
- Another one (2018)