Minitest results not being picked up


I am running minitest for my chef recipes which run on a remote machine through rake.  What is the criteria for minitests to be picked up by teamcity?  The output of the tests is returned to stdout as the results are recorded in the build log of teamcity.  Does teamcity watch for something else or do the tests need to be invoked directly through rake?  Is there any way to tell teamcity to report these tests from the build log or would I need to add teamcity messages?  This is what is coming into stdout right now:

[16:04:03][Execute vagrant:provision] # Running tests:

[16:04:03][Execute vagrant:provision] TestXML#test_that_the_libxslt_devel_package_was_installed =  [0m

[16:04:03][Execute vagrant:provision]  [32mlibxslt-devel-1.1.17-2.el5_2.2

[16:04:03][Execute vagrant:provision] libxslt-devel-1.1.17-2.el5_2.2 [0m

[16:04:03][Execute vagrant:provision]  [32m0.40 s = .

[16:04:03][Execute vagrant:provision] TestXML#test_that_the_libxml_devel_package_was_installed =  [0m

[16:04:04][Execute vagrant:provision]  [32mlibxml2-devel-2.6.26-2.1.12.el5_7.1

[16:04:04][Execute vagrant:provision] libxml2-devel-2.6.26-2.1.12.el5_7.1 [0m

[16:04:04][Execute vagrant:provision]  [32m0.37 s = .

[16:04:04][Execute vagrant:provision] TestXML#test_that_the_libxml2_package_was_installed =  [0m

[16:04:04][Execute vagrant:provision]  [32mlibxml2-2.6.26-2.1.12.el5_7.1

[16:04:04][Execute vagrant:provision] libxml2-2.6.26-2.1.12.el5_7.1 [0m

[16:04:04][Execute vagrant:provision]  [32m0.38 s = .

[16:04:04][Execute vagrant:provision] TestXML#test_that_the_libxslt_package_was_installed =  [0m

[16:04:04][Execute vagrant:provision]  [32mlibxslt-1.1.17-2.el5_2.2

[16:04:04][Execute vagrant:provision] libxslt-1.1.17-2.el5_2.2 [0m

[16:04:04][Execute vagrant:provision]  [32m0.38 s = .

[16:04:04][Execute vagrant:provision] TestZip#test_that_the_unzip_package_was_installed =  [0m

[16:04:05][Execute vagrant:provision]  [32munzip-5.52-3.el5 [0m

[16:04:05][Execute vagrant:provision]  [32m0.37 s = .

[16:04:05][Execute vagrant:provision] TestZip#test_that_the_zip_package_was_installed =  [0m

[16:04:05][Execute vagrant:provision]  [32mzip-2.31-2.el5 [0m

[16:04:05][Execute vagrant:provision]  [32m0.41 s = .

[16:04:05][Execute vagrant:provision] Finished tests in 2.308479s, 2.5991 tests/s, 2.5991 assertions/s.

[16:04:05][Execute vagrant:provision] 6 tests, 6 assertions, 0 failures, 0 errors, 0 skips

1 comment
Comment actions Permalink

I found that someone wrote minitest-reporters that generates teamcity messages for minitest.  Is this the suggested approach?

If I switch to minitest/spec do I still need to use the minitest-reporters?



Please sign in to leave a comment.