okaywit / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Addition of test size annotations (@SmallTest, @MediumTest, @LargeTest) #1473

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great to put test size annotations in guava-testlib 
(https://code.google.com/p/guava-libraries/source/browse/#git%2Fguava-testlib%2F
src%2Fcom%2Fgoogle%2Fcommon%2Ftesting)

These annotations allow splitting tests up by size (i.e. whether they have 
external dependencies, how long they take to run, etc.) For more information 
see the Google testing blog post 
(http://googletesting.blogspot.com/2010/12/test-sizes.html).

These annotations are already included in Android (see 
android.test.suitebuilder.annotation.SmallTest). It would be great to make them 
available to the rest of the Java world and very easy since the source is 
already there. I've attached the files I'd like to see added, which I took from 
the Android source simply changing the package name and copyright notice.

Original issue reported on code.google.com by benjamin...@gmail.com on 10 Jul 2013 at 6:52

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kak@google.com on 10 Jul 2013 at 7:35

GoogleCodeExporter commented 9 years ago
This sort of seems like it ought to be independent of Guava?

Original comment by lowas...@google.com on 10 Jul 2013 at 8:11

GoogleCodeExporter commented 9 years ago
I'm not sure why you say that? It seems like it'd fit well with guava-testlib 
(not the main guava project). There are lots of things there that are test 
oriented common code like 
https://code.google.com/p/guava-libraries/source/browse/guava-testlib/src/com/go
ogle/common/testing/TearDown.java

Original comment by benjamin...@gmail.com on 10 Jul 2013 at 8:16

GoogleCodeExporter commented 9 years ago
Any thoughts on this one? This library class is used extensively within Google, 
so it's very sad to see it missing from Guava.

Maven and Gradle both have the ability to run Junit classes with category 
annotations. But right now each project has to create their own annotations. 
It'd be great to have a set of standard ones to rely on.

Original comment by benjamin...@gmail.com on 16 Jul 2014 at 8:48

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08