Skip to content

Unable to specify custom test adapter path #4241

Closed

Description

Description

I am trying to create a custom test adapter which is intended to run before nunit3.testadapter. I have a requirement of executing tests with custom test adapter and for some conditions tests should run using nunit3.testadapter executor something like this.

I tried out the following solutions:

  1. dotnet test --test-adapter-path C:\Adapters
  2. vstest.console.exe dll_path /TestAdapterPath:"C:\Adapters"
  3. Created a .runsettings file with RunConfiguration.TestAdaptersPaths node as given below and specified this runsettings path to dotnet test
<RunSettings>
  <RunConfiguration>
    <TestAdaptersPaths>C:\Adapters;</TestAdaptersPaths>
  </RunConfiguration>
</RunSettings>

but every time *.TestAdapter.dll from source dll directory is getting picked.

The custom test adapter should be picked in an ideal scenario, but this isn't working. Can someone please help me to achieve this?

Steps to reproduce

Expected behavior

Custom test adapter should be picked.

Actual behavior

*.TestAdapter.dll at source dll directory is picked.

Diagnostic logs

Environment

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions