test_runner :tests do |tests|
tests.files = FileList['CompanyNameHRAppLibraryTests\bin\Debug\CompanyNameHRAppLibraryTests.dll'] # dll files with test
tests.exe = '../../Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/mstest.exe'
tests.native_exe
end
It looks like it leaves off the parameter " /testcontainer" and interprets the test dll as the command. Attached is my debug output.
** Invoke tests (first_time)
** Execute tests
I 2014-09-24T22:59:38.349200-05:00: executing in directory './CompanyNameHRAppLibraryTests\bin\Debug'
D 2014-09-24T22:59:38.351000-05:00: system( exe=..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe, pars=[CompanyNameHRAppLibraryTests.dll], options=[["work_dir", "CompanyNameHRAppLibraryTests\\bin\\Debug"], ["clr_command", false], ["silent", false], ["output", true], ["out", #<IO:<STDOUT>>], ["err", #<IO:<STDERR>>]]), in directory: CompanyNameHRAppLibraryTests\bin\Debug [cross_platform_cmd #system]
..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe CompanyNameHRAppLibraryTests.dll
D 2014-09-24T22:59:38.354600-05:00: execute the new process, letting it write to the write FD (file descriptor)
D 2014-09-24T22:59:38.362700-05:00: waiting for process completion
Microsoft (R) Test Execution Command Line Tool Version 12.0.21005.1
Copyright (c) Microsoft Corporation. All rights reserved.
Invalid switch "CompanyNamehrapplibrarytests.dll".
For switch syntax, type "MSTest /help"
rake aborted!
Albacore::CommandFailedError: Command failed with status (1):
..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe CompanyNameHRAppLibraryTests.dll
Microsoft (R) Test Execution Command Line Tool Version 12.0.21005.1
Copyright (c) Microsoft Corporation. All rights reserved.
Invalid switch "CompanyNamehrapplibrarytests.dll".
For switch syntax, type "MSTest /help"
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/cross_platform_cmd.rb:259:in `raise_failure'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/cross_platform_cmd.rb:238:in `block in handler_with_message'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/cross_platform_cmd.rb:111:in `call'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/cross_platform_cmd.rb:111:in `block in system'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/cross_platform_cmd.rb:243:in `handle_not_found'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/cross_platform_cmd.rb:87:in `system'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/task_types/test_runner.rb:73:in `execute'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/task_types/test_runner.rb:104:in `block in execute_tests_for'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/task_types/test_runner.rb:138:in `handle_directory'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/task_types/test_runner.rb:98:in `execute_tests_for'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/task_types/test_runner.rb:92:in `block in execute'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/file_list.rb:81:in `each'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/file_list.rb:81:in `each'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/task_types/test_runner.rb:90:in `execute'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.0.16/lib/albacore/dsl.rb:82:in `block in test_runner'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
C:/tools/ruby200/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
C:/tools/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
C:/tools/ruby200/bin/rake:23:in `load'
C:/tools/ruby200/bin/rake:23:in `<main>'
Tasks: TOP => tests
MSTest fails to run with the following task.
It looks like it leaves off the parameter " /testcontainer" and interprets the test dll as the command. Attached is my debug output.