Disable ##teamcity from rails tests
Recently updated to RubyMine 7.1.4 and I'm seeing teamcity output from my `TESTOPTS='-v' bin/rake test` command:
##teamcity[enteredTheMatrix timestamp = '2015-10-08T09:20:08.357-0400']
##teamcity[testCount count = '0' timestamp = '2015-10-08T09:20:08.357-0400']
##teamcity[testStarted name = 'test_cache_key_for_model' captureStandardOutput = 'true' locationHint = 'ruby_minitest_qn://ApplicationHelperTest.test_cache_key_for_model' timestamp = '2015-10-08T09:20:08.364-0400']
##teamcity[testFinished name = 'test_cache_key_for_model' duration = '6' timestamp = '2015-10-08T09:20:08.365-0400']
I had never heard of teamcity and definitely didn't want it in my output by default as I don't test through RubyMine. I trashed RubyMine and the output return to normal
TagTest#test_collection? = 0.04 s = .
TagTest#test_creation = 0.09 s = .
TagTest#test_news? = 0.01 s = .
TagTest#test_pluralize = 0.01 s = .
TagTest#test_promotion? = 0.01 s = .
I then reinstalled RubyMine, got the ##teamcity output again and then removed this folder
rm /Applications/RubyMine.app/Contents/rb/testing
and output was normal. Is there a better way to disable this functionality without killing the testing support?
Please sign in to leave a comment.
It could happen if you have Rails 4 project with Spring preloader and run tests from RubyMine (at least once).
That's excactly the case. I installed spring manually via gem. Why would RubyMine "hijack" it to display teamcity output? I actually want to use spring during tests.
# rails -v
Rails 4.1.10
# rbenv which spring
/usr/local/var/rbenv/versions/2.2.2/bin/spring
*** LOCAL GEMS ***
actionmailer (4.1.10, 3.2.22)
actionpack (4.1.10, 3.2.22)
actionview (4.1.10)
activemodel (4.1.10, 3.2.22)
activerecord (4.1.10, 3.2.22)
activerecord-deprecated_finders (1.0.4)
activerecord-mysql-sql-cache (0.1.1)
activerecord-session_store (0.1.1)
activeresource (4.0.0, 3.2.22)
activesupport (4.1.10, 3.2.22)
addressable (2.3.8)
afm (0.2.2)
airbrake (4.3.0, 4.2.1, 4.1.0)
amatch (0.2.11)
ansi (1.5.0)
arel (5.0.1.20140414130214, 3.0.3)
Ascii85 (1.0.2)
auto_strip_attributes (2.0.6)
autotest (4.4.6)
autotest-fsevent (0.2.10)
autotest-growl (0.2.16)
autotest-rails (4.1.2)
bigdecimal (1.2.6)
buftok (0.2.0)
builder (3.2.2, 3.0.4)
bundler (1.10.6)
cache_digests (0.3.1)
capistrano (3.4.0)
capistrano-bundler (1.1.4)
capistrano-ejson (1.0.0)
capistrano-rails (1.1.3)
capistrano-rbenv (2.0.3)
capistrano-stats (1.1.1)
carrierwave (0.10.0)
chunky_png (1.3.4)
ci_reporter (2.0.0, 1.9.3)
ci_reporter_minitest (1.0.0)
ci_reporter_test_unit (1.0.0)
ckeditor (4.1.2)
ckeditor_rails (4.4.8)
climate_control (0.0.3)
cocaine (0.5.7)
coderay (1.1.0)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
colorize (0.7.7)
crack (0.4.2)
daemons (1.1.9)
dalli (2.7.4)
database_cleaner (1.4.1)
delayed_job (4.0.6)
delayed_job_active_record (4.0.3)
delayed_job_web (1.2.10)
diffy (3.0.7, 3.0.6)
domain_name (0.5.24)
dynamic_form (1.1.4)
ejson (1.0.0)
elasticsearch (1.0.12, 1.0.8)
elasticsearch-api (1.0.12, 1.0.7)
elasticsearch-model (0.1.7)
elasticsearch-rails (0.1.7)
elasticsearch-transport (1.0.12, 1.0.7)
enum_column3 (0.1.4)
environs (1.1.0)
equalizer (0.0.11)
equivalent-xml (0.6.0, 0.5.1)
erubis (2.7.0)
execjs (2.5.2)
factory_girl (4.5.0, 4.4.0)
factory_girl_rails (4.5.0, 4.4.1)
fakeweb (1.3.0)
fancybox2-rails (0.2.8)
faraday (0.9.1)
faraday_middleware (0.9.1)
ffi (1.9.10)
foreigner (1.7.4)
foundation-rails (5.5.2.1, 5.5.1.0)
haml (4.0.6, 3.1.8)
haml-rails (0.4, 0.3.5)
hashery (2.1.1)
hashie (3.4.2, 3.4.1)
hike (1.2.3)
hpricot (0.8.6)
htmlentities (4.0.0)
http (0.6.4)
http_parser.rb (0.6.0)
httparty (0.13.5)
i18n (0.7.0, 0.6.11)
io-console (0.4.3)
ipaddr_list (0.0.2)
jbuilder (2.3.0, 2.2.13)
journey (1.0.4)
jquery-rails (3.1.3)
jquery-ui-rails (5.0.5, 5.0.3)
json (1.8.3, 1.8.2, 1.8.1)
kaminari (0.14.1, 0.13.0)
libv8 (3.16.14.7 x86_64-darwin-13)
mail (2.6.3, 2.5.4)
mechanize (2.5.1)
memoizable (0.4.2)
metaclass (0.0.4)
method_source (0.8.2)
micro_magick (0.0.7)
mime-types (2.6.1, 1.25.1)
mini_magick (4.2.3)
mini_portile (0.6.2, 0.6.0)
minitest (5.7.0, 4.7.5)
mocha (1.1.0, 0.13.3)
msgpack (0.6.1)
multi_json (1.11.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
mysql2 (0.3.18)
naught (1.0.0)
nested_form (0.3.2)
net-http-digest_auth (1.4)
net-http-persistent (2.9.4)
net-scp (1.2.1)
net-ssh (2.9.2)
newrelic_rpm (3.13.0.299, 3.11.2.286)
nokogiri (1.6.6.2, 1.6.3.1, 1.5.11)
ntlm-http (0.1.1)
observr (1.0.5)
open4 (0.9.6)
orm_adapter (0.5.0)
paper_trail (3.0.8)
pdf-core (0.4.0)
pdf-reader (1.3.3)
polyamorous (1.1.0)
polyglot (0.3.5)
power_assert (0.2.3)
prawn (1.3.0)
pry (0.10.1)
pry-doc (0.8.0, 0.6.0)
pry-rails (0.3.4)
psych (2.0.8)
rabl (0.7.10)
rack (1.5.5, 1.5.3, 1.4.6)
rack-auth-ip (0.0.7)
rack-cache (1.2)
rack-cors (0.4.0)
rack-protection (1.5.3)
rack-ssl (1.3.4)
rack-test (0.6.3)
rails (4.1.10)
rails-observers (0.1.2)
rails-perftest (0.0.6)
railties (4.1.10, 3.2.22)
rake (10.4.2, 10.3.2, 10.1.1)
rbtrace (0.4.7)
rdoc (4.2.0, 3.12.2, 3.5.3)
recaptcha (0.4.0)
ref (1.0.5)
rim (2.5.1)
rqrcode (0.6.0)
rqrcode-rails3 (0.1.7)
ruby-prof (0.15.8)
ruby-rc4 (0.1.5)
ruby-xslt (0.9.9)
rubycas-client (2.3.10.rc1)
rubyzip (1.1.7)
safe_yaml (1.0.4)
sass (3.4.15, 3.4.14, 3.4.13)
sass-rails (5.0.3, 3.2.6)
sequel (4.24.0)
simple_oauth (0.2.0)
sinatra (1.4.6)
sitemap_generator (5.0.5)
slop (3.6.0)
spring (1.4.0)
sprockets (3.2.0, 2.2.3)
sprockets-rails (2.3.1)
sqlite3 (1.3.10)
squeel (1.2.3)
sshkit (1.7.1)
strong_parameters (0.2.3)
subexec (0.2.3)
sys-uname (0.9.2)
terminal-notifier (1.6.3)
test-unit (3.0.9, 2.5.5)
test_after_commit (0.4.1)
text (1.2.3)
therubyracer (0.12.2)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
tins (0.13.2)
treetop (1.4.15)
trollop (2.1.2)
ttfunk (1.4.0)
turbo-sprockets-rails3 (0.3.14)
twitter (5.11.0)
tzinfo (1.2.2, 0.3.44)
uglifier (2.7.1)
unf (0.1.4)
unf_ext (0.0.7.1)
unicode_utils (1.4.0)
utf8-cleaner (0.1.1)
validatable (1.6.7)
webmock (1.21.0)
webrobots (0.1.1)
wicked_pdf (0.11.0)
will_paginate (3.0.7)
yajl-ruby (1.2.1)
yard (0.8.7.6)
ZenTest (4.11.0)
RubyMine uses custom formatter for tests (rspec, minitest, cucumber) for creating tree of tests in UI.
If you do not run tests from RubyMine or after each run restarts spring. There should not by ##teamcity messages in tests started from console