« first day (276 days earlier)      last day (2340 days later) » 

10:30 AM
Someone else experiencing "no response from server" errors in the console since yesterday?
Me and my colleague are having those working from different networks..
 
 
8 hours later…
6:40 PM
@Basti Not I. Have you tried changing workspace?
 
 
4 hours later…
10:27 PM
Thought up something that might be interesting to discuss, but too subjective for a question.

How much test code does everyone write?

I haven't bothered to find an average test class for some average code of mine, but for the current project I'm working on, I'm sitting at about 7:1 (for every line in the class being tested, my test class has 7 lines), and that feels a lot higher than average for me. That's just total lines in each class, haven't bothered trying to remove comments or figure out which lines are/are not executable.
 
I guess it depends on if you implement true unit tests or if you typically just write end-to-end unit tests that test specific scenarios. We tend to focus more on the latter here, so not as many lines of code. We still have several hundred unit tests though.
7:1 seems pretty high to me though - I tend to find that there are many similarities between unit tests that can be refactored out and re-used multiple times. I guess it largely depends on the class you're unit testing and what setup data is needed.
 
11:15 PM
In my case, these tests are closer to "true" unit tests (they test a single public method, the responsibilities of which are fairly confined). There are a lot of similarities between these tests of mine, but each one generally tests a distinct scenario.

I'm not troubled by the 7:1 ratio (yet) due to the fact that I'll be exposing this code as a REST API, and it'll be powering a business-critical integration. I normally try to judge the worthiness of a given test scenario by the Pareto principle, but the tolerance for failure/unexpected results in my case is pretty low.
 
11:32 PM
ah yeah, anything that will be exposed to another system (or is global, if you're developing a managed package) is definitely worthy of more unit testing.
I'd be more interested to know how many developers tend to follow test-driven development or write their unit tests after they've already completed the work (I would /like/ to practice TDD more, but I often put them off until I'm almost finished...)
 

« first day (276 days earlier)      last day (2340 days later) »