Я пишу rakefile, и мне нужно запустить mstest одновременно с несколькими тестовыми dll. Мне нужно запустить mstest только один раз, потому что мне нужен только один файл TRX. Чтобы запустить mstest для нескольких тестовых dll, мне нужно иметь возможность добавить несколько экземпляров /testcontainer:some.test.dll
в одну и ту же команду. Вот моя текущая рейк-задача:
task :tests do
testDlls = FileList.new("#{BUILD_PATH}/*.Specs.dll")
sh "#{MSTEST_PATH} /testcontainer:#{testDlls}"
end
Например, в testDlls есть test1.dll, test2.dll и test3.dll. Вышеупомянутая задача выводит:
c:\msbuild\msbuild.exe /testcontainer:test1.dll test2.dll test3.dll
Мне нужно:
c:\msbuild\msbuild.exe /testcontainer:test1.dll /testcontainer:test2.dll /testcontainer:test3.dll
Как я могу получить желаемый результат?