Skip to content

No matched test files! for project compiled with msbuild (.NET 4) #19

@ikondrasovas

Description

@ikondrasovas

In my workflow file I have defined the following step for test execution, but I get back an "No matched test files" error back:

- name: vstest-action
  uses: microsoft/vstest-action@v1.0.0
  with:
    # Run tests from the specified files
    # testAssembly: # default is **\\*test*.dll\n!**\\*TestAdapter.dll\n!**\\obj\\**
    # Folder to search for the test assemblies
      searchFolder: "D:\\a\\<myapplication>\\source\\clientapp\\<mytestproject>\\bin\\Release\\"

all other parameters contain default values.

I have verified the test .dll file is compiled and available by looking at the logs.
To make sure, I have also fully specified the absolute path where the test .dll is located.

I am wondering if the reason is that the test assembly is .NET 4.0 and it was built using microsoft/setup-msbuild@v1.1 action.

Any ideas on what is the problem or how can I further isolate it?

Thanks!

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