Confused about how to run all tests in the project

We use a custom test suite that collects all tests from the classpath
based on various criteria (eg, all tests that begin with UTest for unit
tests, all test that begin with FTest for funcational tests).

Now with the modules, it seems that I have no way to collect all test in
the entire project. This means that our XP release process of running
/all/ tests prior to a delivery is unattainable with idea. Is this
correct? Note that I don't want to click on a package and just collect
all junit tests because some will be unit tests (which /must/ be run
prior to delivery) and other will be functional test (which are not
required for delivery and require all kinds of servers to be running).

I read the thread for tracker 21661, and it seems to approach the
problem from the point of view that a test is a test. What I would like
to see is a choice in the run configuration entry is "use classpath
project/all modules". Hence tracker
http://www.intellij.net/tracker/idea/viewSCR?publicId=26381.

3 comments
Comment actions Permalink

Well, I created a pseudo module which depends on all modules and all
libraries. That allows us to run our tests. But this seems a bit smelly.
The ability to select the project as the base for the classpath/jdk
would be much cleaner.


Barry Kaplan wrote:

We use a custom test suite that collects all tests from the classpath
based on various criteria (eg, all tests that begin with UTest for unit
tests, all test that begin with FTest for funcational tests).

Now with the modules, it seems that I have no way to collect all test in
the entire project. This means that our XP release process of running
/all/ tests prior to a delivery is unattainable with idea. Is this
correct? Note that I don't want to click on a package and just collect
all junit tests because some will be unit tests (which /must/ be run
prior to delivery) and other will be functional test (which are not
required for delivery and require all kinds of servers to be running).

I read the thread for tracker 21661, and it seems to approach the
problem from the point of view that a test is a test. What I would like
to see is a choice in the run configuration entry is "use classpath
project/all modules". Hence tracker
http://www.intellij.net/tracker/idea/viewSCR?publicId=26381.


0
Comment actions Permalink

Just create configurations "All Tests in Package" and leave package field
empty (default package). Doesn't it work for you?

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Barry Kaplan" <bkaplan@integratedtrading.com> wrote in message
news:bu1bq8$ed2$1@is.intellij.net...

We use a custom test suite that collects all tests from the classpath
based on various criteria (eg, all tests that begin with UTest for unit
tests, all test that begin with FTest for funcational tests).

>

Now with the modules, it seems that I have no way to collect all test in
the entire project. This means that our XP release process of running
/all/ tests prior to a delivery is unattainable with idea. Is this
correct? Note that I don't want to click on a package and just collect
all junit tests because some will be unit tests (which /must/ be run
prior to delivery) and other will be functional test (which are not
required for delivery and require all kinds of servers to be running).

>

I read the thread for tracker 21661, and it seems to approach the
problem from the point of view that a test is a test. What I would like
to see is a choice in the run configuration entry is "use classpath
project/all modules". Hence tracker
http://www.intellij.net/tracker/idea/viewSCR?publicId=26381.

>


0
Comment actions Permalink

Valentin Kipiatkov (JetBrains) wrote:

Just create configurations "All Tests in Package" and leave package field
empty (default package). Doesn't it work for you?


Well, no. I gave a detailed explanation in the issue
(http://www.intellij.net/tracker/idea/viewSCR?publicId=26381).

0

Please sign in to leave a comment.