Living docs and combining testing projects
I created two sets of tests for two websites. Initially they were in two separate solutions in Visual studio. Eventually, I combined the two projects into one solution and while the tests run fine and spit out nice test results in ADO, I can't get the LivingDocs to generate properly. It shows the test scenarios and steps fine, but it doesn't show results.
I feel like I'm missing something simple in this setup but I can't spot it. Hoping a fresh set of eyes can help.
The files are all located under the same parent directory "/SolutionRoot/" with the divering projects in TestSet1 and TestSet2
The TestExecution_#.json is set in each project's specflow.json as :
{
"bindingCulture": {
"name": "en-us"
},
"language": {
"feature": "en-us"
},
"livingDocGenerator": {
"enabled": true,
"filePath": "TestExecution_2.json"
}
}
The pipeline run looks like this:
stage: 'SiteB_Tests'
displayName: 'SiteB site tests'
dependsOn: Prerequisites
jobs:
- job: RunSiteBTests
pool:
name: 'Web App Testing'
steps:
- checkout: none
- task: DotNetCoreCLI@2
displayName: 'Run the tests on SiteB'
inputs:
command: test
projects: '$(System.DefaultWorkingDirectory)\SolutionRoot\TestSet2 Tests\bin\Debug\net6.0\SiteBTests.dll'
arguments: '$(SiteBFilter)' #"--filter Category={TagValue}"
publishTestResults: true
testRunTitle: SiteB tests
modifyOutputPath: true
#includeSymbols: true
continueOnError: true
- stage: 'companydotCom_Tests'
displayName: 'company.com site tests'
dependsOn: Prerequisites
jobs:
- job: RundotComTests
pool:
name: 'Web App Testing'
steps:
- checkout: none
- task: DotNetCoreCLI@2
displayName: 'Run the tests on company.com'
inputs:
command: test
projects: '$(System.DefaultWorkingDirectory)\SolutionRoot\TestSet1 Tests\bin\Debug\net6.0\company_com.dll'
arguments: '$(dotComFilter)' #'--filter Category=GeneralNav' #
publishTestResults: true
testRunTitle: company.com tests
modifyOutputPath: true
#includeSymbols: true
continueOnError: true
...
- stage: 'Post_Test'
jobs:
- job: 'Publish_the_Reports'
pool:
name: 'Web App Testing'
steps:
- checkout: none
- task: SpecFlowPlus@0
displayName: 'Generate the SpecFlow + LivingDocs reports for company.com'
inputs:
generatorSource: 'FeatureFolder'
projectFilePath: 'SolutionRoot\TestSet1 Tests'
projectName: 'company.com site'
testExecutionJson: '\**\TestExecution_1.json'
projectLanguage: 'en'
output: 'FeatureData.json'
- task: SpecFlowPlus@0
displayName: 'Generate the SpecFlow + LivingDocs reports for SiteB'
inputs:
generatorSource: 'FeatureFolder'
projectFilePath: 'SolutionRoot\TestSet2'
projectName: SiteB Testing # Optional
testExecutionJson: '\**\TestExecution_2.json'
projectLanguage: 'en' # Optional
output: 'FeatureData.json'
0
Please sign in to leave a comment.
Comments
0 comments