6d57ca7e14
* WIP migrate tests * WIP fixing more tests * WIP fix test build break * Test results files are now trx * Get CI to pass until we get an xunit xml logger * Added DotNetTestPJ since that was needed for one test * Fix build break * Forgot to add DotNetTestPJ as a build task * Need to restore project.json for the project used in ubuntu test * Restore PJ for ubuntu test * Switch the Ubuntu test to csproj based
29 lines
807 B
C#
29 lines
807 B
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System;
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
{
|
|
public sealed class RunCommand : TestCommand
|
|
{
|
|
public RunCommand()
|
|
: base("dotnet")
|
|
{
|
|
}
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
{
|
|
args = $"run {args}";
|
|
return base.Execute(args);
|
|
}
|
|
|
|
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
|
{
|
|
args = $"run {args}";
|
|
return base.ExecuteWithCapturedOutput(args);
|
|
}
|
|
}
|
|
}
|