SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Error trying to run IronRuby tests

Last post 08-11-2010 7:26 PM by MattWard. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-10-2010 9:41 PM

    Error trying to run IronRuby tests

    When I click to run IronRuby tests I got this message, every time:

     

    SharpDevelop Version : 4.0.0.6399

    .NET Version         : 4.0.30319.1

    OS Version           : Microsoft Windows NT 6.1.7600.0

    Current culture      : English (United States) (en-US)

    Running under WOW6432, processor architecture: AMD64

    Working Set Memory   : 156464kb

    GC Heap Memory       : 34619kb

     

    Exception thrown:

    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

       at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

       at System.Diagnostics.Process.Start()

       at ICSharpCode.SharpDevelop.Util.ProcessRunner.Start(String command, String arguments)

       at ICSharpCode.UnitTesting.UnitTestProcessRunner.Start(String command, String arguments)

       at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(ProcessStartInfo processStartInfo)

       at ICSharpCode.RubyBinding.RubyTestRunner.Start(SelectedTests selectedTests)

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.StartTestRunner()

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.RunTests(SelectedTests selectedTests)

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.BuildAndRunTests()

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.Run()

       at ICSharpCode.UnitTesting.RunAllTestsInPadCommand.Run()

       at ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

       at System.Windows.Forms.ToolStrip.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    ---- Recent log messages:

    16:33:42.376 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\vinicius.quaiato\Documents\SharpDevelop Projects\Codigo\Testes\MyClassTests.rb]

    16:33:42.376 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: MyClassTests.rb]

    16:33:42.376 [1] INFO - CurrentProject changed to Testes

    16:33:42.377 [1] DEBUG - NavigationService

    ActiveViewContent: MyClassTests.rb

             Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}

    16:33:42.377 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\vinicius.quaiato\Documents\SharpDevelop Projects\Codigo\Testes\MyClassTests.rb]

    16:33:42.380 [1] DEBUG - MyClassTests.rb - Will move focus to: ICSharpCode.AvalonEdit.Editing.TextArea

    16:33:42.490 [1] DEBUG - MyClassTests.rb - moving focus to: ICSharpCode.AvalonEdit.Editing.TextArea

    16:33:42.503 [1] DEBUG - MyClassTests.rb - not moving focus

    16:34:27.379 [1] DEBUG - ActiveContentChanged to ICSharpCode.UnitTesting.UnitTestsPad

    16:34:29.047 [1] DEBUG - Activated feature 'ICSharpCode.UnitTesting.RunAllTestsInPadCommand', activation=Toolbar

    16:34:29.048 [1] DEBUG - Unit Tests - Will move focus to: [SDWindowsFormsHost System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None for ICSharpCode.UnitTesting.UnitTestsPad]

    16:34:29.048 [1] DEBUG - Unit Tests - Will move focus to: [SDWindowsFormsHost System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None for ICSharpCode.UnitTesting.UnitTestsPad]

    16:34:29.055 [1] ERROR - ThreadException caught

    --> Exception:

    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

       at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

       at System.Diagnostics.Process.Start()

       at ICSharpCode.SharpDevelop.Util.ProcessRunner.Start(String command, String arguments)

       at ICSharpCode.UnitTesting.UnitTestProcessRunner.Start(String command, String arguments)

       at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(ProcessStartInfo processStartInfo)

       at ICSharpCode.RubyBinding.RubyTestRunner.Start(SelectedTests selectedTests)

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.StartTestRunner()

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.RunTests(SelectedTests selectedTests)

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.BuildAndRunTests()

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.Run()

       at ICSharpCode.UnitTesting.RunAllTestsInPadCommand.Run()

       at ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

       at System.Windows.Forms.ToolStrip.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    16:34:29.131 [1] DEBUG - CompilerMessageView: Combined 3 appends.

    16:34:29.132 [1] DEBUG - Output - Will move focus to: [SDWindowsFormsHost System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None for ICSharpCode.SharpDevelop.Gui.CompilerMessageView]

    16:34:29.132 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.CompilerMessageView

    16:34:29.152 [1] DEBUG - Unit Tests - not moving focus

    16:34:29.152 [1] DEBUG - Unit Tests - not moving focus

    16:34:29.152 [1] DEBUG - Output - moving focus to: [SDWindowsFormsHost System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None for ICSharpCode.SharpDevelop.Gui.CompilerMessageView]

    16:34:34.037 [1] DEBUG - ActiveContentChanged to ICSharpCode.UnitTesting.UnitTestsPad

    16:34:36.645 [1] DEBUG - Activated feature 'ICSharpCode.UnitTesting.StopTestsCommand', activation=Toolbar

    16:39:12.629 [1] DEBUG - Activated feature 'ICSharpCode.UnitTesting.RunAllTestsInPadCommand', activation=Toolbar

    16:39:12.629 [1] DEBUG - Unit Tests - Will move focus to: [SDWindowsFormsHost System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None for ICSharpCode.UnitTesting.UnitTestsPad]

    16:39:12.629 [1] DEBUG - Unit Tests - Will move focus to: [SDWindowsFormsHost System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None for ICSharpCode.UnitTesting.UnitTestsPad]

    16:39:12.637 [1] ERROR - ThreadException caught

    --> Exception:

    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

       at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

       at System.Diagnostics.Process.Start()

       at ICSharpCode.SharpDevelop.Util.ProcessRunner.Start(String command, String arguments)

       at ICSharpCode.UnitTesting.UnitTestProcessRunner.Start(String command, String arguments)

       at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(ProcessStartInfo processStartInfo)

       at ICSharpCode.RubyBinding.RubyTestRunner.Start(SelectedTests selectedTests)

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.StartTestRunner()

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.RunTests(SelectedTests selectedTests)

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.BuildAndRunTests()

       at ICSharpCode.UnitTesting.AbstractRunTestCommand.Run()

       at ICSharpCode.UnitTesting.RunAllTestsInPadCommand.Run()

       at ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

       at System.Windows.Forms.ToolStrip.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    ---- Post-error application state information:

    Installed 3rd party AddIns: 

    Workbench.ActiveContent: ICSharpCode.UnitTesting.UnitTestsPad

    ProjectService.OpenSolution: [Solution: FileName=C:\Users\vinicius.quaiato\Documents\SharpDevelop Projects\Codigo\Codigo.sln, HasProjects=True, ReadOnly=False]

    ProjectService.CurrentProject: [RubyProject: Testes]

    Here is my code:
    require 'test/unit'
    require '../Codigo/MyClass'

    class MyClassTests < Test::Unit::TestCase
        def test_pass 
            myclass = MyClass.new 
              assert_equal(1, myclass.one(), 'Test should work'
        end 
        def test_fail 
              myclass = MyClass.new 
              assert_equal(1, myclass.two(), 'Test should fail'
         end 
    end

    Filed under: ,
  • 08-11-2010 7:26 PM In reply to

    Re: Error trying to run IronRuby tests

    SharpDevelop cannot find ir.exe by the looks. If you select Tools | Options | Tools | Ruby and check that the Command points to ir.exe correctly.

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.