Skip to content

VSTest Target #2

Description

@smack0007

In my SnowShovel project I'm using an slnproj file to run my tests:

  <Target Name="VSTest">
    <ItemGroup>
      <TestProjects Include="tests/**/*.csproj" />
    </ItemGroup>
    <MSBuild Projects="@(TestProjects)" Targets="VSTest" />
  </Target>

Tests can then be executed with the dotnet cli:

dotnet test SnowShovel.slnproj

I feel like this should be in the box. I'm willing to create a pull request if you can assist me in how to test changes in the project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions