Giter VIP home page Giter VIP logo

Comments (9)

instecjason avatar instecjason commented on June 3, 2024 1

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.

gasparnagy avatar gasparnagy commented on June 3, 2024 1

@ChristopherHaws @instecjason this makes sense. i did it, see commit 210f7ff

from specflow.xunitadapter.

gasparnagy avatar gasparnagy commented on June 3, 2024 1

@instecjason the NuGet package is updated now. https://www.nuget.org/packages/SpecFlow.xUnitAdapter/1.1.0

from specflow.xunitadapter.

instecjason avatar instecjason commented on June 3, 2024

This looks great. Any plans to publish an updated Nuget package for this?

from specflow.xunitadapter.

instecjason avatar instecjason commented on June 3, 2024

@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.

gasparnagy avatar gasparnagy commented on June 3, 2024

@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.

ChristopherHaws avatar ChristopherHaws commented on June 3, 2024

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.

gasparnagy avatar gasparnagy commented on June 3, 2024

@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.

instecjason avatar instecjason commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.