xUnit 2.0 support
xUnit 2.0 does not seems to be supported.
The test discovery always returns zero test.
In xUnit 2.0, xunit.dll does not exist anymore. You should check for xunit.core.dll instead.
Showing page 2 out of 2. View the first page
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 31 Posted by Feodor Fitsner on 26 Mar, 2015 10:05 AM
Add
nuget restoreto "Before build script". Worked like a charm: https://ci.appveyor.com/project/FeodorFitsner/toxiproxy-netConsider getting rid of .nuget folder and using
nuget restorefor restoring packages.32 Posted by Mark on 26 Mar, 2015 11:05 AM
Cool - works like a charm.
I will need to loo at Automatic Package Restore as well.
Thanks again.
33 Posted by richard.bogle on 09 Apr, 2015 05:15 PM
What is the minimum that is required to get the xUnit v.2 tests working?
This a default build script with no appveyor.yml file. It mentions
%xunit20%\xunit.console.x86so it's recognised xUnit v.2. Nuget restore is working and then launching Paket which is also working.Support Staff 34 Posted by Feodor Fitsner on 09 Apr, 2015 05:26 PM
Have you tried doing
nuget restorein "Before build script"? There is a custom.targetsfile in xunit 2.0 that copiesxunit.execution.desktop.dllto build output folder (see this import in a test xunit 2.0 project). Looks like this file should exist before build starts.35 Posted by richard.bogle on 09 Apr, 2015 07:17 PM
The
nuget restoreis in the Build tab's "Before build script" by default (I think). It may be that Paket isn't doing exactly the same thing. I'll have to check by switching back to nuget for package management as a trial. The complete build result, however, implies that Paket is getting it right.Support Staff 36 Posted by Feodor Fitsner on 09 Apr, 2015 07:24 PM
OK, nuget restore downloaded paket, but now paket runs as part of the build, so when msbuild build starts and csproj is read that xunit targets file does not exist yet voiding its import. Is there a way to run paket and restore *all* packages before msbuild starts?
- Feodor
37 Posted by richard.bogle on 16 Apr, 2015 09:26 PM
I tried to put "paket install" after the "nuget restore" in "Before build script" which will restore all the packages before the build as you suggest, Feodor but as paket isn't installed on the build server this fails:
So I somehow need a reference to the newly installed paket.exe that I can call or paket needs to be on the build server or I need to move away from the settings that are available through the UI and try to create a better build script to run.
Any suggestions welcomed.
Support Staff 38 Posted by Feodor Fitsner on 16 Apr, 2015 11:18 PM
I think you should call it as:
39 Posted by Andrey Shchekin on 21 Apr, 2015 04:35 AM
I get something even weirder:
Even though my project has nothing to do with MonoAndroid.
40 Posted by Andrey Shchekin on 21 Apr, 2015 04:37 AM
I have a custom nuget.config that puts packages into
#packages.Support Staff 41 Posted by Feodor Fitsner on 21 Apr, 2015 04:41 AM
It's just
xunit.execution.MonoAndroidis not added to the ignored list of auto-discovered assemblies. Either addxunit.execution.MonoAndroid.dllto exclude assemblies list or use your own test script command to call xunit runner with correct assembly.I'll add an issue to fix that by the next release.
42 Posted by Andrey Shchekin on 21 Apr, 2015 05:26 AM
That solved it, thanks!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:55 AM.