unable to attach test reporter to test framework or test framework quit unexpectedly

please please please help me , i m trying ti run my test unit tests through this and its been two days i have been searching for the solution please help me.

the code of my test can be found at

https://github.com/gitamsinghkaystha/streamingtestframework

I have to evaluate this tool to my manager to buy this one for test framework development.

i m getting following error:

C:\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:\Program Files (x86)\JetBrains\RubyMine 5.0.2\rb\testing\runner\tunit_or_minitest_in_folder_runner.rb"
Testing started at 12:18 AM ...
Work directory: C:/practice/Gaana/streamingtestframework
Loading files....
=========================================

0 files were loaded.
=========================================
Running tests...

Process finished with exit code 0

4 comments

Check run configuration you use to run tests.  It has pattern for files with tests and it looks like there is no such files.

Hope this helps, Oleg.

0

please refer to screenshot attached for my run configuration and project structure.

yes changing the test name e.g. did ran GaanaLogin.rb but result shows

no tests were found

C:\Ruby187\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:\Program Files (x86)\JetBrains\RubyMine 4.0.3\rb\testing\runner\tunit_or_minitest_in_folder_runner.rb"
Testing started at 4:33 PM ...
Work directory: C:/rubygems/test/GaanaTest}
Loading files....
=========================================
[WARNING] MultiJson is using the default adapter (ok_json). We recommend loading a different JSON library to improve performance.
1. C:/rubygems/test/GaanaTest/GaanaLogin.rb:1

1 files were loaded.
=========================================
Running tests...

0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

Test suite finished: 0.0 seconds
C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:44:in `run_suite': wrong number of arguments (1 for 0) (ArgumentError)
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:44:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:100:in `with_listener'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:40:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:63:in `old_run_suite'
    from C:\Program Files (x86)\JetBrains\RubyMine 4.0.3/rb/testing\patch\testunit/test/unit/ui/testrunnermediator.rb:41:in `run_suite'
    from C:\Program Files (x86)\JetBrains\RubyMine 4.0.3/rb/testing\patch\testunit/test/unit/ui/teamcity/testrunner.rb:131:in `start_mediator'
    from C:\Program Files (x86)\JetBrains\RubyMine 4.0.3/rb/testing\patch\testunit/test/unit/ui/teamcity/testrunner.rb:119:in `start'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:409:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:465:in `change_work_directory'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:408:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:59:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit.rb:502
    from -e:1

Process finished with exit code 1
Empty test suite.



Attachment(s):
projectstructure and run configuration.png
0

Re: unable to attach test reporter to test framework or test framework quit unexpectedly

please refer to screenshot attached for my run configuration and project structure.

yes changing the test name e.g. did ran GaanaLogin.rb but result shows

no tests were found

C:\Ruby187\bin\ruby.exe  -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:\Program  Files (x86)\JetBrains\RubyMine  4.0.3\rb\testing\runner\tunit_or_minitest_in_folder_runner.rb"
Testing started at 4:33 PM ...
Work directory: C:/rubygems/test/GaanaTest}
Loading files....
=========================================
[WARNING]  MultiJson is using the default adapter (ok_json). We recommend loading a  different JSON library to improve performance.
1. C:/rubygems/test/GaanaTest/GaanaLogin.rb:1

1 files were loaded.
=========================================
Running tests...

0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

Test suite finished: 0.0 seconds
C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:44:in  `run_suite': wrong number of arguments (1 for 0) (ArgumentError)
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:44:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:100:in `with_listener'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:40:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnermediator.rb:63:in `old_run_suite'
     from C:\Program Files (x86)\JetBrains\RubyMine  4.0.3/rb/testing\patch\testunit/test/unit/ui/testrunnermediator.rb:41:in  `run_suite'
    from C:\Program Files (x86)\JetBrains\RubyMine  4.0.3/rb/testing\patch\testunit/test/unit/ui/teamcity/testrunner.rb:131:in  `start_mediator'
    from C:\Program Files (x86)\JetBrains\RubyMine  4.0.3/rb/testing\patch\testunit/test/unit/ui/teamcity/testrunner.rb:119:in  `start'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:409:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:465:in `change_work_directory'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:408:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit/autorunner.rb:59:in `run'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/test-unit-2.5.4/lib/test/unit.rb:502
    from -e:1

Process finished with exit code 1
Empty test suite.


Attachments:
0

Hi,

check "Test file name mask" field, your configuration expects something like xxx_test.rb as a source for test, but you do not have such files.
You should either change the mask or rename files to follow this convention.

Hope this helps.

Regards, Oleg.

0

Please sign in to leave a comment.