Test support suggestions

I have two small suggestions about test support:

1. "Run Changed Tests" -- allows all tests that have been changed since being checked out to be run in one step

2. "Test Groups" -- allow an arbitrary selection of test methods/classes to be grouped into a named Run configuration that can be run in one go. We tend to group our DAO tests in one package and our Spring MVC controller tests in another: this feature would allow me to make run configurations that run all the tests for a feature (some DAOs, some controllers) in one step rather than having to run all the DAO tests and all the controller tests in two steps, which takes ages. I could make a config for each of the classes, but then my Run Config drop-down gets huge and unmanageable and I still need to run them one-by-one.

I haven't tried a recent EAP build, shame on me, so I do apologise if these have been already addressed.

1 comment
Comment actions Permalink

Not sure how useful #1 is: we typically want to run more tests than just the
ones that are changed. Better would be for it to run the tests that test the
code that changed, but that's harder.

#2 is better solved by creating a test suite. See the JUnit docs for info on
suites. Now, if IDEA could auto-generate the suite, that'd be awesome.

;ted

"Ben Pickering" <benpickering@gmail.com> wrote in message
news:5216322.1190375027194.JavaMail.itn@is.intellij.net...
>I have two small suggestions about test support:
>

1. "Run Changed Tests" -- allows all tests that have been changed since
being checked out to be run in one step

>

2. "Test Groups" -- allow an arbitrary selection of test methods/classes
to be grouped into a named Run configuration that can be run in one go.
We tend to group our DAO tests in one package and our Spring MVC
controllers in another: this feature would allow me to make run
configurations that run all the tests for a feature (some DAOs, some
controllers) in one step rather than having to run all the DAO tests and
all the controller tests. I could make a config for each of the
classes, but then my Run Config drop-down gets huge and unmanageable and I
need to run them one-by-one.

>

I haven't tried a recent EAP build, shame on me, so I do apologise if
these have been already addressed.



0

Please sign in to leave a comment.