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

How to use specflow.actions targets with Specflow 4? #121 #2738

Open
tulavalle opened this issue Feb 7, 2024 · 0 comments
Open

How to use specflow.actions targets with Specflow 4? #121 #2738

tulavalle opened this issue Feb 7, 2024 · 0 comments
Labels

Comments

@tulavalle
Copy link

SpecFlow Version

4.0.31-beta

Which test runner are you using?

xUnit

Test Runner Version Number

2.4.5 and 2.5.6

.NET Implementation

.NET 6.0

Project Format of the SpecFlow project

Sdk-style project format

.feature.cs files are generated using

SpecFlow.Tools.MsBuild.Generation NuGet package

Test Execution Method

Visual Studio Test Explorer

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

{
"$schema": "http://json-schema.org/draft-04/schema#",
"language": {
"feature": "pt"
},
"generator": {
"allowDebugGeneratedFiles": false,
"allowRowTests": true,
"addNonParallelizableMarkerForTags": [ "noParallel" ]
},
"livingDocGenerator": {
"enabled": true,
"filePath": "TestExecution.json"
},
"runtime": {
"additionalProperties": true,
"stopAtFirstError": false
},
"trace": {
"traceTimings": true,
"stepDefinitionSkeletonStyle": "RegexAttribute"
},
"definitions": {
"SpecFlow": {
"isSpecFlowProject": true
}
},
"editor": {
"showStepCompletionAfterStepKeywords": true,
"gherkinFormat": {
"indentFeatureChildren": false,
"indentRuleChildren": true,
"indentSteps": true,
"indentAndSteps": true,
"indentDataTable": true,
"indentDocString": true,
"indentExamples": true,
"indentExamplesTable": true,
"tableCellPaddingSize": 1
}
}
}

Issue Description

Hello, i went to update a project that used specflow in version "3.9.74" . After updating to version 4.0.31-beta I got the following packages:
image

however, when compiling it fails to generate the feature files:
image

By removing the packages

image

the build is successfully performed, however, without considering the configured actions, of course. In specflow 4 is there a way to configure targets like we do in specflow actions? Is there a planned release of Specflow actions that is compatible with Specflow 4+?

thanks in advance for the help!

Steps to Reproduce

With the conofigs described, simply run the dotnet restore and dotnet build commands to see the error message when compiling:

image

Link to Repro Project

No response

@tulavalle tulavalle added the Bug label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant