SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.23k stars 752 forks source link

MSBuild always rebuilds project #2554

Closed tkovacs-dev closed 2 years ago

tkovacs-dev commented 2 years ago

SpecFlow Version

3.9.40

Which test runner are you using?

NUnit

Test Runner Version Number

3.13.2

.NET Implementation

equal or greater .NET Framework 4.6.1

Project Format of the SpecFlow project

Classic project format using packages.config

.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

N/A

Issue Description

When building a solution, projects with .feature files are always rebuilt; even when there's no change in any of the files.

The diagnostic output from msbuild shows a missing input file, even though it's there:

Build started...
1>Project 'SpecflowRebuildTest' is not up to date. Missing input file 'SpecFlowFeature1.feature'.
1>------ Build started: Project: SpecflowRebuildTest, Configuration: Debug Any CPU ------
...
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

I expected 0 succeeded, and 1 up-to-date projects.

Steps to Reproduce

Link to Repro Project

https://github.com/tkovacs-dev/SpecflowRebuildTest

SabotageAndi commented 2 years ago

I think this is a duplicate of https://github.com/SpecFlowOSS/SpecFlow/issues/1822

github-actions[bot] commented 2 years ago

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.