← Back to team overview

launchpad-dev team mailing list archive

Re: Phasing in the Architecture Design Metrics into our reviews

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/08/2010 09:14 AM, Brad Crittenden wrote:

> "Tests for a class should complete in under 2 seconds. If they aren't, spend at least a little time determining why."
> 
> To incorporate this metric into your reviews you'll obviously need to run the tests.  If a test is brand new then you can just evaluate the timing.  Modifications to existing tests should be compared with before and after timings.  So reviewers, either download the code being reviewed and run the tests yourself or ask the developer for comparative timings.  Start the conversation.

You say that we can incorporate this metric by checking the timing of
new and modified tests, but the metric is about all tests for a class.
In order to derive the times for all tests for the class from the timing
of new and modified tests, we would have to already know the cumulative
time of tests for the class.  We don't have that, and can't easily
generate it, because execution times will vary depending on developer
machines.

I think you're proposing a new metric instead of incorporating the one
you quote.  Could you please spell out your new metric, so that I can
consider it during my reviews?

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/pXoACgkQ0F+nu1YWqI2r8ACfdhlgIS7TRhPBmiD+Yw2ZdBFj
E64An2u6c2obbwnhVHWzHkxPaakr/tFq
=YkVh
-----END PGP SIGNATURE-----



Follow ups

References