.IPR builder doesn't behave the same as IDEA 6?
I'm using TeamCity 1.1.1, and I think I've found a bug.
My web application is structured very much in accordance to the maven2 structure (though I'm not using maven2!). The directories important to this thread include:
src
src/main
src/main/java
src/main/resources
src/test
src/test/java
src/test/resources
Flagged as Source Folders
Flagged as Test Source Folders
In IDEA, when I run the application, it uses the resources in main/resources. When I run unit tests (JUnit 3.8) it overrides settings in main/resources with those from test/resources. Presumably, that is because test/resources is first in the classpath so things are found there first.
I've configured TeamCity to use the project (.ipr) file. I'm drawn to the idea that both local builds and build server builds use the same configuration, and thus, are built and tested in the same expect manner.
When TeamCity runs my unit tests, resources from both main/resources and test/resources are available on the classpath, but those in main/resources are found first. If TC was doing the same thing as IDEA, then test/resources would be found first.
The main problem with this is that the two (IDEA and TC) are out of sync with one another. I'd expect them to run tests in the same manner and with the same classpath (including order).
Has anyone else seen this behavior?
Christian
Please sign in to leave a comment.
Hi Christian,
please watch this issue:
http://www.jetbrains.net/jira/browse/BDP-108
Thanks!
--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Christian Nelson" <no_reply@jetbrains.com> wrote in message
news:29123095.1165204497509.JavaMail.itn@is.intellij.net...
>
>
>
>
>
>
>
>
>