| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 11 months |
| seen | 58 mins ago | |
| stats | profile views | 54 |
|
May 17 |
revised |
Is there a point to unit tests that stub and mock everything public? added 846 characters in body |
|
May 17 |
comment |
Is there a point to unit tests that stub and mock everything public? In the method that you are talking about, I am making sure that the proper calls are being made. The method's job is to call objectA.foo() then objectB.bar() so that is what I am going to make sure. Suppose at some future date, the order matters. You are able to adjust the test to ensure this. Or that conditionally objectC.baz() will be called, the test will ensure that. |
|
May 17 |
comment |
Is there a point to unit tests that stub and mock everything public? Yes. The method does something doesn't it? So it should be tested. From a testing stand point I don't know if it is using anything private. I just know that if I provide input A, I should get output B. |
|
May 17 |
comment |
Is there a point to unit tests that stub and mock everything public? If the method is private, you don't test it explicitly, it should be tested via the public interface. All public methods should be tested, to ensure that the behavior is correct. |
|
May 17 |
revised |
Is there a point to unit tests that stub and mock everything public? added 272 characters in body |
|
May 17 |
answered | Is there a point to unit tests that stub and mock everything public? |
|
May 5 |
comment |
Using only UI testing. Is that Ok? Some testing is better than no testing. But just keep in mind that you will have a hard time getting good code coverage with UI testing alone. |
|
May 2 |
answered | Stubbing and mocking boundaries |
|
May 2 |
answered | How do you test database abstraction in PHP? |
|
Apr 12 |
answered | Unit Testing and “Fit” |
|
Apr 8 |
awarded | Commentator |
|
Apr 8 |
comment |
If functional testing is referred as black box..how can it be done on unit test level? You need to be able to see what is going on to determine lower level units so hence white box. But when doing the test it would be considered black box as you are not looking at what is going on inside the system. |
|
Apr 8 |
revised |
If functional testing is referred as black box..how can it be done on unit test level? added 598 characters in body |
|
Apr 8 |
answered | If functional testing is referred as black box..how can it be done on unit test level? |
|
Apr 8 |
answered | Git: rebasing and keeping current to a remote branch - accepted practices? |
|
Apr 2 |
answered | How do you know if you're an underpaid developer? |
|
Mar 28 |
revised |
Unit-testing functions without business logic (only checks) added 1597 characters in body |
|
Mar 28 |
answered | Unit-testing functions without business logic (only checks) |
|
Mar 3 |
awarded | Announcer |
|
Mar 1 |
comment |
What's the standard practice to prevent users from having unreasonable expectations? @AakashM To me that is semantic, I would say expecting that a system work all the time is not unreasonable. Understanding the fact that things don't always work is something different. |