Timeline for is it okay to mock a database when writing unit test?
Current License: CC BY-SA 4.0
        21 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 27, 2024 at 22:37 | answer | added | JL Peyret | timeline score: -1 | |
| Sep 27, 2024 at 9:19 | comment | added | Sebastian Redl | @DocBrown It's definitely not hidden advertising, and I don't object to advertising in an article. I think, however, that it should take the form of "here's an idea, if you want it in more detail and more ideas from me, buy the book". This article feels more like "here's half an idea, if you want the rest buy the book", and I don't like that. | |
| Sep 27, 2024 at 6:19 | comment | added | Doc Brown | @SebastianRedl: to be fair, I don't think it is "unethical" for a book author to write a blog entry about his book where he shares some of his ideas for free. Sure, this is also advertisement, but definitely not hidden advertisement. I think it is quite normal that the blog will be more terse than the book, and it is not surprising that because of the terseness some people might find "controversial" statements in that. | |
| Sep 26, 2024 at 22:13 | answer | added | candied_orange | timeline score: 2 | |
| Sep 26, 2024 at 20:54 | answer | added | Schwern | timeline score: -1 | |
| Sep 26, 2024 at 20:38 | comment | added | Doug Warren | It might be okay to mock or not mock a dependency depending on the situation. There are advantages to getting the tests up and running with less development time, but there are also advantages to getting the tests to run faster and with less setup and fewer resources. If mocking a dependency is extraordinarily difficult, however, it may be a sign that your concerns aren't separated well enough. One thing that's not helpful, in my experience, is bitter controversy over what the One True Test Methodology is. | |
| Sep 25, 2024 at 12:23 | answer | added | Shadov | timeline score: -2 | |
| Sep 25, 2024 at 10:29 | history | became hot network question | |||
| Sep 25, 2024 at 7:15 | answer | added | Steve | timeline score: 0 | |
| Sep 25, 2024 at 6:45 | comment | added | Sebastian Redl | Make controversial statement, tell reader to pay money to hear the justification. Not a fan. | |
| Sep 25, 2024 at 6:10 | answer | added | Doc Brown | timeline score: 42 | |
| Sep 25, 2024 at 6:07 | answer | added | JacquesB | timeline score: 10 | |
| Sep 25, 2024 at 5:41 | review | Close votes | |||
| Sep 30, 2024 at 3:03 | |||||
| Sep 25, 2024 at 5:37 | history | edited | Doc Brown | CC BY-SA 4.0 | 
        
            
             
                
                    Grammar and references improved 
                
             
        
     | 
| Sep 25, 2024 at 4:04 | answer | added | Flater | timeline score: 13 | |
| Sep 25, 2024 at 3:36 | comment | added | Doc Brown | ... Moreover, in that Medium article, the author writes at the end "Of course, using real instances of managed dependencies in tests poses an obvious issue: how do you test them such that your tests remain fast and reliable? You’ll see this subject covered in depth in my book: Unit Testing Principles, Practices, and Patterns" - so the answer to your question seems to be somewhere in the book, I guess. | |
| Sep 25, 2024 at 3:31 | answer | added | VoiceOfUnreason | timeline score: 4 | |
| Sep 25, 2024 at 2:45 | history | edited | christian tiovanto | CC BY-SA 4.0 | 
        
            
             
                
                    added 99 characters in body 
                
             
        
     | 
| Sep 25, 2024 at 2:30 | history | edited | Greg Burghardt | CC BY-SA 4.0 | 
        
            
             
                
                    deleted 6 characters in body 
                
             
        
     | 
| S Sep 25, 2024 at 2:29 | review | First questions | |||
| Sep 25, 2024 at 4:06 | |||||
| S Sep 25, 2024 at 2:29 | history | asked | christian tiovanto | CC BY-SA 4.0 |