I have per-project .rvmrc files, specifying ruby version and a project gemset.
I currently have this setup as follows, with 3 build steps:
- Command line, ensure bundler is installed, run bundle install to ensure all required gems are in place - in the project ruby/gemset area.
- Rake task to get the (sqlite) db migrated (rvm interpreter specified)
- Rake task to run the tests (rvm interpreter specified)
As I have project .rvmrc files, I'd hope to be able to miss out the rvm interpreter and let TeamCity Rake task do the right thing via the .rvmrc file - but oh well and it seems to do the right thing anyway.
This has been working fine for me, but now I am trying to add rcov into the mix...
So far, I have only added it as a dependancy in the Gemfile, which I can see it installed/listed in my build step 1, but not visible in step 2 - it complains that it could not find the rcov gem "Could not find rcov-0.9.9 in any of the sources"
So, I am trying to rejig things, and went for 1 command line build step that does all of the above in one go. This is working, but its not detecting the failed tests anymore.
Is there a way to TeamCity to see the failed tests from a command line build step?