In: Computer Science
How does the term 'Mock" fit with testing in software engineering?
When someone's test doesn't pass we mock them until they cry. |
||
A mock is an object used to replace a dependency so a function can be tested |
||
Mocks are used to replace a function in our code during testing |
||
A mock is a simulation of the entire application |
What are the benefits of testing code?
Testing cuts downtime in debugging and rewriting code. |
||
Testing allows even bad code to be approved since a test can still be written to pass. |
||
Testing forces other developers to solve our code problems |
||
There are no benefits to testing since the time spent up front is more than the time saved in debugging. |
How does the term 'Mock" fit with testing in software
engineering?:
Answer: A mock is an object used to replace a dependency so
a function can be tested
Explanation:
What are the benefits of testing code?
Answer: Testing cuts downtime in debugging and rewriting
code.
Explanation: