Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specflow.json is not visible for NUnit 3 during test run #1643

Closed
8 of 30 tasks
Muliarchyk opened this issue Jul 2, 2019 · 3 comments
Closed
8 of 30 tasks

Specflow.json is not visible for NUnit 3 during test run #1643

Muliarchyk opened this issue Jul 2, 2019 · 3 comments

Comments

@Muliarchyk
Copy link

#689 # SpecFlow Version:

  • 3.0
  • 2.4
  • 2.3
  • 2.2
  • 2.1
  • 2.0
  • 1.9

Used Test Runner

  • SpecFlow+Runner
  • MSTest
  • NUnit 3.12
  • Xunit

Project Format of the SpecFlow project

  • Classic project format using packages.config
  • Classic project format using <PackageReference> tags
  • Sdk-style project format

.feature.cs files are generated using

  • SpecFlow.Tools.MsBuild.Generation NuGet package
  • SpecFlowSingleFileGenerator custom tool

Visual Studio Version

  • VS 2019
  • VS 2017
  • VS 2015

Are the latest Visual Studio updates installed?

  • Yes
  • No, I use Visual Studio version <Major>.<Minor>.<Patch>

.NET Framework:

  • >= .NET 4.5
  • before .NET 4.5
  • .NET Core 2.0
  • .NET Core 2.1
  • .NET Core 2.2
  • .NET Core 3.0

Test Execution Method:

  • Visual Studio Test Explorer
  • TFS/VSTS/Azure DevOps – Task – PLEASE SPECIFY THE NAME OF THE TASK
  • Command line – PLEASE SPECIFY THE FULL COMMAND LINE

<SpecFlow> Section in app.config or content of specflow.json

{
"bindingCulture": {
"language": "en-us"
},
"language": {
"feature": "en-us"
},
"plugins": [],
"stepAssemblies": [
{
"assembly": "TestAutomation.UiSteps"
}
]
}

Issue Description

I have stepAssemblies in specflow.json. This file is not
copied to the output directory. But after set file property "Copy to Output Directory" to "Copy always" NUnit still can't find it. Just because the NUnit default run directory is not Output Directory of project.

@SabotageAndi
Copy link
Contributor

Which exact version are you using?
This was fixed 5 days ago (#1629)

@Muliarchyk
Copy link
Author

3.0.220.
Yes. I checked it on 3.0.225. And it works. Thank you!

@lock
Copy link

lock bot commented Aug 1, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants