8000 Tests don't run from command-line or VSCode · Issue #1629 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content
Tests don't run from command-line or VSCode #1629
Closed
@lupino3

Description

@lupino3

Reproduction steps

  1. Clone the repository from the WSL command line
  2. Open the folder in Visual Studio Code
  3. Try to run one test (click on "Run Test" over any test)

Alternatively, after cloning, run dotnet restore and run any test with dotnet test, for example:

$ dotnet test LibGit2Sharp.Tests//LibGit2Sharp.Tests.csproj --filter LibGit2Sharp.Tests.UnstageFixture.CanUnstageSourceOfARename

Expected behavior

The test runs, and either passes or fails.

Actual behavior

The test always fails, cannot open the testrepo_wd directory. Example:

System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\<my username>\source\github\LibGit2Sharp.Tests\Resources\testrepo_wd'.

The directory is not found because the path is wrong. It is missing the git repo name. The correct one would be:

C:\Users\<my username>\source\github\libgit2sharp\LibGit2Sharp.Tests\Resources\testrepo_wd

Note that this is fixed if the environment variable Configuration is set to release, for some reason.

Version of LibGit2Sharp (release number or SHA1)

0a9c84d (current HEAD)

Operating system(s) tested; .NET runtime tested

Windows 10 Enterprise 1803
.NET Core 2.1.403

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0