Closed Konnor5092 closed 2 years ago
You can configure in the srProfile in which TestAssemblies the discovery and execution should be made. Docs is here: https://specflow.org/plus/documentation/TestAssemblyPaths/
Generally we look into all assemblies which references the TechTalk.SpecRun.dll
.
@SabotageAndi The issue is finding the .srprofile via the .runsettings file, which presumably occurs before the .srprofile test assemblies are checked.
I already have that setting set...
<TestAssemblyPaths>
<TestAssemblyPath>Selenium.SEPA.dll</TestAssemblyPath>
</TestAssemblyPaths>
And I can confirm this filename is only generated in one project.
Regarding the path referenced in the error...
C:\TFS\Smart End Point Assessment\Main\Selenium\Integration.SEPA\bin\Test\Settings\srprofile\Test\testmanual.srprofile
The Integration.SEPA project doesn't even have SpecFlow installed but it's still trying to find a .srprofile here when I build
Thanks,
I see the same issue as well. @SabotageAndi, any update on this, when this will be fixed?
@rkkreddy No update on this issue.
As we stopped maintaining the SpecFlow+ Runner (https://specflow.org/using-specflow/the-retirement-of-specflow-runner/) I am closing this issue.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
SpecFlow Version:
Used Test Runner
Version number: 3.0.391
Project Format of the SpecFlow project
packages.config
<PackageReference>
tags.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation
NuGet packageSpecFlowSingleFileGenerator
custom toolVisual Studio Version
Enable SpecFlowSingleFileGenerator Custom Tool
option in Visual Studio extension settingsAre the latest Visual Studio updates installed?
<Major>.<Minor>.<Patch>
.NET Framework:
Test Execution Method:
<SpecFlow> Section in app.config or content of specflow.json
Repro Project
Issue Description
When attempting to build and discover tests for my solution, I get the following error in the Output -> Tests window
This was working prior to upgrading to 3.0.391 (I was already on version 3). Note I am selecting a .runsettings file prior to building.
I can see what's happening - It's taking the first part of the URL from the currently building project ->
C:\TFS\Smart End Point Assessment\Main\Selenium\Integration.SEPA\bin\Test
, and appending what I have in my .runsettings file...The project referenced by this error is not a specflow project. The .runsettings file resides in a different project which is where I would like the test discovery to look.
Setting an absolute path like below does resolve the issue, however this isn't viable when multiple people will be using the project and wont necessarily have their workspaces mapped the same
<Profile>C:\TFS\Smart End Point Assessment\Main\Selenium\Selenium.SEPA\bin\Test\Settings\srprofile\Test\testmanual.srprofile</Profile>
How do I a) define which project(s) to look in when performing the specflow+ test discovery during a rebuild of the solution?
or b) somehow ignore certain projects for test discovery whilst still being able to rebuild all projects in the solution at the same time.
Many thanks,