Different test unit output in Rubymine and console

Hi all,

when I run unit tests from RubyMine the output looks like this:

C:\Ruby\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:/Users/User/RubymineProjects/Unijet Customer Data Cleanup/Test_unijet_customer_data_cleanup.rb"
##teamcity[enteredTheMatrix timestamp = '2014-11-24T12:11:50.801+0100']
##teamcity[testCount count = '1' timestamp = '2014-11-24T12:11:50.801+0100']

Loaded suite C:/Users/User/RubymineProjects/Unijet Customer Data Cleanup/Test_unijet_customer_data_cleanup 
Started 
. 

Finished in 0.001 seconds. 1 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 
100% passed 

1000.00 tests/s, 4000.00 assertions/s


Any idea how I can get the same output in RubyMine as in the console?

Thx,
Christian

6 comments
Comment actions Permalink

Hi,

these "#teamcity" lines we need to show nice test tree on the lest side of execution tool window so I'm not sure you want to remove them,
But (actually) you are not supposed to see these lines.  What test gem are you using?  What ruby version?
How do you run the tests?

Regards, Oleg.

0
Comment actions Permalink

Hi,

I see them at the bottom of the IDE in the "Run" output when I execute my test class via CTRL+SHIFT+F10.

nice test tree on the lest side of execution tool window

I don´t see anything like that currently, how can I make that visible?

I am using test-unit and Ruby 2.0.0p481 on Windows 7.
0
Comment actions Permalink

chrissbaumann wrote:

Hi,

I see them at the bottom of the IDE in the "Run" output when I execute my test class via CTRL+SHIFT+F10.

nice test tree on the lest side of execution tool window


I don´t see anything like that currently, how can I make that visible?

I am using test-unit and Ruby 2.0.0p481 on Windows 7.


Hmm, for some reasons RubyMine failed to recognize that this is a test.
Most likely because we do expect all tests be in *_test.rb files.
I'd try to rename the file and see if it helps.

Regards, Oleg.

0
Comment actions Permalink

Thank you so much Oleg!

That worked out!

And now I also see the "normal" console output. :-)

0
Comment actions Permalink

Got same error with redundant output. My tests named correctly.

 Like this:

##teamcity[testFinished name = 'TestXmlFixes.test_no_space_in_front' duration = '1' timestamp = '2016-12-27T15:35:34.781+0200']

##teamcity[testStarted name = 'TestXmlFixes.test_no_space_in_front_arabic' captureStandardOutput = 'true' locationHint = 'ruby_qn://TestXmlFixes.test_no_space_in_front_arabic' timestamp = '2016-12-27T15:35:34.781+0200']

 

RubyMine 2016.3.1
Build #RM-163.9166.34, built on December 15, 2016
Licensed to Peter Kuznecov
Subscription is active until October 23, 2017
For educational use only.
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

0
Comment actions Permalink

Hello,

could you please specify what test framework and Ruby version you're using. How does your Run configuration look like (a screenshot would be helpful)?

0

Please sign in to leave a comment.