Make Reqnroll tests discoverable in release pipelines #991
-
|
currently, a release pipeline in Azure Devops is not able to discover Reqnroll tests (or at least I have not found a way to do so). It would be really helpful, so that tests can also be run from Release pipelines, not only build pipelines, with a connection to a manual test in Test Plan. (running the automated tests from a test plan in that release pipeline). I hope this is a feature that can be added to Reqnroll, and needs no technical changes on the MS side). Thanks for considering |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
|
Could you please elaborate on this? Do you mean the classic release pipelines, as nowadays there is only one type (multi stage) pipelines in Azure DevOps recommended? Are you getting an error? It's just running I use it daily as I'm running post deployment tests with Reqnroll & Reqnroll |
Beta Was this translation helpful? Give feedback.
-
|
Sorry about formatting, not sure what happened. Hi, I try to run reqnroll test from a testplan in a pipeline, so my vstest task is: task: VSTest@3
displayName: 'Test run for Test plans'
inputs:
testSelector: testPlan
testPlan: 95302
testSuite: 95323
testConfiguration: 10
runInParallel: true
runTestsInIsolation: false
codeCoverageEnabled: false
continueOnError: true
retryCountOnTaskFailure: 1There are 4 tests in the test plan. 2 of them are associated with automated playwright tests in the same project, 1 is associated with a reqnroll test in the same project and 1 from another project (which cannot run, so I expect the last one not to be exucuted). The test runner discovers my 23 automated tests in the 2 test projects. One of these 23 is the associated reqnroll test. But the last line says only 2 are discovered for execution and these 2 are the only ones that are run and where results are fed back to test manager. |
Beta Was this translation helpful? Give feedback.
-
|
Hello again, still no luck. If this is not a reqnroll problem, could I get suggestions on where to address this? whose problem is it? |
Beta Was this translation helpful? Give feedback.
-
|
Another approach is to check the generated testcode (by reqnroll, you could do that in Visual Studio) , move it to a new file and change until it works and/or remove all reqnroll references. That could make it more clear why it isn't working and/or is this is a reqnroll issue. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I somehow managed to get it working (coincidentally without trying to anymore).
It did not work after I added the first task, I can rule that out. |
Beta Was this translation helpful? Give feedback.
Hello, I somehow managed to get it working (coincidentally without trying to anymore).
my pipeline tasks now look like this:
inputs:
versionSelector: 'latestStable'
displayName: 'Test run for Test plans'
inputs:
vsTestVersion: 'toolsInstaller'
testSelector: testPlan
testPlan: 95302
testSuite: 95323
testConfiguration: 10
searchFolder: '$(System.ArtifactsDirectory)'
resultsFolder: '$(Agent.TempDirectory)/VSTestResults'
It did not work after I added the first task, I can rule that out.
I also removed some inputs and added the resultsFodler (the split into stages and adding the searchFolder came later where it was already working). So…