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:
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?