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:
dotnet test --test-adapter-path C:\Adapters
vstest.console.exe dll_path /TestAdapterPath:"C:\Adapters"
- Created a .runsettings file with
RunConfiguration.TestAdaptersPaths
node as given below and specified this runsettings path todotnet 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