[LRUG] Number of tests over time?

Frederick Cheung frederick.cheung at gmail.com
Wed Mar 25 07:39:50 PDT 2015


On 25 March 2015 at 14:34:53, Sam Phillips (sam at samsworldofno.com) wrote:
I've picked just one of ours (we have 30+). This is an API endpoint with no UI. 3.5 years development, ~19 contributors overall, 3011 specs (of which some are integration).

One discussion we have occasionally is the merit of removing unit tests once the initial BDD/TDD is done and replacing with fewer, broader tests. Like squashing git commits that made sense in the context of a branch but years later don't mean anything, do small individual tests still give value when coverage is available from wider specs? We've not deleted any yet because everything is fast enough - eg the component above builds in 4 minutes.

I'd be interested if anyone else deletes tests later on.


I’m interested in this too. If I say that foo should happen when a new user signs up, then I write my spec, add my feature and everything is great. Some months later I remove this - would people write a spec to say that foo no longer happens or just delete the spec that says that foo should happen. I usually do something approaching the former - I want to be confident that I’ve actually done what I’ve intended, but that feels like an example of what you’re talking about - once i’m confident the feature has been removed, the value of specs saying that it’s not there seems minimal

Fred



On 25 March 2015 at 14:29, Frederick Cheung <frederick.cheung at gmail.com> wrote:
5 years, something like 9/10 people total (not all of them still left), 8500 specs (of which a 100 or so are integration specs). Many more if you count the ones that have been deleted when the corresponding functionality was canned (we had about 200 more specs a month ago, but I’ve been doing some pruning recently)

Fred


On 25 March 2015 at 14:22:12, Tim Cowlishaw (tim at timcowlishaw.co.uk) wrote:

Hi all,

I was idly wondering earlier on about how our test suites change over the life of a project. New features almost definitely mean more tests, but refactoring (in my experience) makes some tests redundant, so it's not necessarily a monotonic increase over time. Therefore, just to satisfy my own curiosity: (1) How long has your project been in development? (2) How many people work on it? (3) How many specs / unit tests do you have, and (4) How many integration / acceptance tests or cukes do you have?

I'll go first:

I've been working on this project since the beginning of January as the sole developer, and I've currently got 434 specs and 55 cucumber scenarios (with 204 steps).

(Obviously this is in no way meant to be a scientific survey. Just idly wondering how others work) 

Cheers!

Tim

_______________________________________________
Chat mailing list
Chat at lists.lrug.org
Archives: http://lists.lrug.org/pipermail/chat-lrug.org
Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org

_______________________________________________
Chat mailing list
Chat at lists.lrug.org
Archives: http://lists.lrug.org/pipermail/chat-lrug.org
Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20150325/c8a45c45/attachment.html>


More information about the Chat mailing list