2,576 reputation
1230
bio website sleepeasysoftware.com
location Los Angeles, CA 90066
age
visits member for 2 years, 10 months
seen Apr 19 at 8:24

Jul
2
awarded  Curious
Jul
2
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
"The only way to test for this is to write an automated UI test to click on the button twice. Maybe check out Selenium." In situations like that, the backend better be preventing that from occurring, otherwise the UI would have direct access to the database.
Jul
1
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
I don't think you responded to my first sentence.
Jun
30
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
As I said, "The majority of our bugs involve JPA in one way or another.", I think the article's advice would miss all of those. Also, if you consider those Java/C# tests to still be unit tests, we've got very different definitions. I think this is good advice in general, but it still seems like it would take a ton of time to deploy and run the suite and therefore not conducive to TDD. Do you disagree?
Jun
30
awarded  Nice Question
Jun
30
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
That's a nice thought, but I'd still have to deploy to the app server, AFAIK. That's a lot of the 3+ minutes. That said, it's definitely worth doing. But it's still difficult to imagine running the tests as often as I would run unit tests and therefore it seems inefficient to develop using TDD.
Jun
30
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
added 203 characters in body
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
@JeroenVannevel OK what about the TDD aspect? Do I have to drop that? To me a 3+ minute feedback loop for TDD defeats the benefits.
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
@gnat ok I edited my question, thanks
Jun
27
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
added 509 characters in body
Jun
27
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
deleted 9 characters in body
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
@randomA correct, I edited my question to explicitly say that. I don't understand why you're recommending I change the question. Can you elaborate? I want to keep the unit test part in there because I'd rather be writing unit tests than integration tests (although I'm aware that unit testing != TDD)
Jun
27
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
added 38 characters in body
Jun
27
asked How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
Jun
15
awarded  Yearling
Jun
11
comment What kind of code would Kent Beck avoid unit testing?
@Telastyn If you're saying, "Kent Beck could just reply to that other question (or that I could do it on his behalf if he replies)" I see your point.
Jun
11
comment What kind of code would Kent Beck avoid unit testing?
@Telastyn JoshKelley's answer shows otherwise, but that's your right. Besides, if Kent Beck replies to my email I'll be able to post it as an answer anyway. But I won't be able to do this is the issue is closed.
Jun
11
comment What kind of code would Kent Beck avoid unit testing?
FWIW, I don't come to your conclusion about many objects collaborating together. I think he advocates independence for test stability and reproducible results. In fact, to me it seems impossible to avoid "many objects collaborating together" unless you were stubbing/mocking.
Jun
11
comment What kind of code would Kent Beck avoid unit testing?
@MichaelT nope, I'll do that now though. Good idea. If he replies I'll post the answer here.
Jun
11
revised What kind of code would Kent Beck avoid unit testing?
added 468 characters in body