I am noticing that JUnit (on Eclipse Indigo at least) is reporting the time of each test, including the @Before and @After setup and tear down functions.
I'd like to only see the time it takes the individual @Test functions to run, sans the overhead setup and teardown.
Don't get me wrong, I can see why including the setup and tear down can be important, but for my purposes, separating them would be more beneficial.
These tests really ought to take a matter of milliseconds. Hopefully I can do this without having to write my own/use Apache stopwatch function!
// Using JUnit 4, Java 6, Eclipse Indigo
Could there be a way to overload/override the JUnit reported time of test run with a manual #?
UPDATE:
It appears the timing of the function is in private methods found here: https://github.com/junit-team/junit/blob/72af03c49fdad5f10e36c7eb4e7045feb971d253/src/main/java/org/junit/runner/Result.java
Since they aren't protected, I don't think we can override the start and stop times...