-
Notifications
You must be signed in to change notification settings - Fork 585
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
Fake5 / Fake cli : XUnit2 helper should check is project is an xunit one to run the executable #1945
Comments
Honestly I have no idea how to solve or detect this. My first feeling is that this needs to be handled by the user and we need to provide a new task for |
something that just run the more i this no about it the more i realize i have no good idea in fact for the api or naming ^^ |
The console runner just does not work with dotnet core. I had the same issues at work where i had to use both runners because of WPF projects ;). Would a new Task be in the XUnit module or in DotNet or in a new one? |
Yes exactly, those kind of questions arise ;) |
XUnit is dropping support for dotnet-xunit and will release a global tool. So i do not think it is worth to support this before the global tool is released. |
yes and no it is still a “dotnet cli” stuff |
Yes, but the global tool will probably support multiple projects and parallelism etc. just like the consoleRunner. You will probably have to provide the path to dlls and not run it from the the project folder and probably more changes. The fake api will likely look quite different for a global tool compared to dotnet-xunit. |
providing dll to a tool is a hell to my point of view ...
Building each csproj like VsDoes in csproj respective folder is a lot preferred i really hate moving everything to a single folder as you could end up with tests stuff or “fake backend” (for devci) in the output folder also if someone référence a testProject into another and you got the dll copied you run test twice etc .... soooo csproj ARE test project ... this is perfect and really simple entry point |
I think I'm closing this for now. I feel like the preferred way for "new style" projects is to call |
@matthid is it documented anywhere how I'm trying this:
But that seems to run mono. I see that it is a |
see : https://github.com/FakeBuild/fake-netcore-sample/blob/08a725d7f40869af6f72d042b0ad7978cc009efc/Console/build.fsx#L38-L46
Description
How should we use the new Xunit2 api
Repro steps
build.fsx
fake-cli
fake run build.fsx --target Test
Expected behavior
Execute the tests since it is an
xunit
dotnet default templateActual behavior
Crash while looking for
xunit.console.exe
Known workarounds
Running an
exec
on dotnet CLI and passingxunit
to it like this :The text was updated successfully, but these errors were encountered: