Comments (9)
Wow. I just encountered this problem. Had the Adapter working perfectly and planned to convert all my tests to Specflow over time... but my old tests are no longer recognized or running. If I get some free time, I might try to cobble something together.
from specflow.xunitadapter.
@ChristopherHaws @instecjason this makes sense. i did it, see commit 210f7ff
from specflow.xunitadapter.
@instecjason the NuGet package is updated now. https://www.nuget.org/packages/SpecFlow.xUnitAdapter/1.1.0
from specflow.xunitadapter.
This looks great. Any plans to publish an updated Nuget package for this?
from specflow.xunitadapter.
@gasparnagy , thanks for the update. Unfortunately, I am including your Nuget package in my own library and when I got to package up my library I get:
C:\Users\jzp\.nuget\packages\specflow.xunitadapter\1.1.0\build\net45\SpecFlow.xUnitAdapter.targets(14,9): error MSB4062: The "SpecFlow.xUnitAdapter.Build.SpecFlowSourceMapAppender" task could not be loaded from the assembly C:\Users\jzp\.nuget\packages\specflow.xunitadapter\1.1.0\build\net45\SpecFlow.xUnitAdapter.Build.dll. Could not load type 'Microsoft.Build.Utilities.AppDomainIsolatedTask' from assembly 'Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\Users\jzp\Source\Repos\smLibTest\smLibTest\src\Instec.StrawberryMoon.Tests\Instec.StrawberryMoon.Tests.csproj]
I'm not sure why the 1.0.0 version worked great and this one does not.
from specflow.xunitadapter.
@instecjason the msbuild task has been introduced in this version. Could you please let me know the .net version of the project you use? If you could make a mini repro project that would be the best.
Workaround: you can comment out the include statement for this target file from your project. The target and the msbuild task is responsible to handle the new SpecFlowFature
and SpecFlowEmbeddedResource
compile actions keeping the source reference. But temporarily using the normal Content
and Embedded Resource
actions will also work.
from specflow.xunitadapter.
Note that using Content
and Embedded Resource
actions will cause Visual Studio to be unable to navigate to the feature file when double clicking the test as the sourcemaps will not be in-lined.
from specflow.xunitadapter.
@ChristopherHaws thx for the clarification.
@instecjason It only works as a workaround, because v1.0.0 was not supporting this feature either... so you don't get that benefit until we fix the MsBuild error.
from specflow.xunitadapter.
@gasparnagy , I was not able to verify the workaround since we only use Nuget packages for our downstream libraries projects. I had to roll back to 1.0.0 for now.
from specflow.xunitadapter.
Related Issues (19)
- [Feature] Test Attachments HOT 2
- error MSB4062: The "SpecFlow.xUnitAdapter.Build.SpecFlowSourceMapAppender" task could not be loaded from the assembly HOT 4
- "Property value is not valid" when setting Build Action to "SpecFlowFeature" HOT 4
- Deserialize Table to List<POCO> HOT 1
- "Could not find a source mapping" despite passing tests HOT 2
- Exception: No matching step definition found for the step. HOT 6
- Unable to select Build Action as per Readme HOT 3
- Source controller marked class files throw System.UnauthorizedAccessException during SourceMap HOT 1
- Scenarios don't show in resharper HOT 1
- Missing "Feature Execution Details" from test execution report HOT 1
- VS for Mac support HOT 1
- Tests not discovered after updating xunit package from 2.3.1 to 2.4.0 (new csproj) HOT 2
- Does not work with SpecFlow 2.4.0
- SpecFlow mutant architecture (noSpecFlow) based on targets (Web POM, APIs, Blockchain, and AI) HOT 1
- What about Specflow v3?
- [Discussion] MSBuild Integration HOT 1
- Causes problem with ITestOutputHelper HOT 3
- Breakpoints in feature files ignored HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from specflow.xunitadapter.