-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Feature] Support standard xunit tests #6
Comments
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. |
@ChristopherHaws @instecjason this makes sense. i did it, see commit 210f7ff |
This looks great. Any plans to publish an updated Nuget package for this? |
@instecjason the NuGet package is updated now. https://www.nuget.org/packages/SpecFlow.xUnitAdapter/1.1.0 |
@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:
I'm not sure why the 1.0.0 version worked great and this one does not. |
@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 |
Note that using |
@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. |
@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. |
Add support for having a standard xUnit test in the same project as a SpecFlow test. Currently, since we are using a custom TestFramework, standard xUnit tests get filtered out. We will need to modify
SpecFlowTestDiscoverer
to support this, probably by inheritingXunitTestFrameworkDiscoverer
or by creating a wrapper that calls into both types.The text was updated successfully, but these errors were encountered: