Search code examples
azure-devopsnunit

The slice of type 'Discovery' is 'Aborted' because of the error : System.Exception: NUnit Adapter 4.0.0.0: Test discovery complete


I tried to run Azure DevOps tests in a build pipeline. Tests are executed on a new agent, i got the following error.

Setup Azure DevOps

##[error]The slice of type 'Discovery' is 'Aborted' because of the error : System.Exception: NUnit Adapter 4.0.0.0: Test discovery complete Received the command : Stop TestExecutionHost.ProcessCommand. Stop Command handled SliceFetch Aborted. Moving to the TestHostEnd phase Test run '1007278' is in 'Aborted' state. ##[error]Test run is aborted. Logging details of the run logs. ##[error]System.Exception: The test run was aborted, failing the task.


Solution

  • The Problem is that after slice process the test case filter isn't working, solution was the rename to “TestCategory”, before it was “Category“ for TestCaseFilter