Unusual warning when using VSO Build VNext.

Could not load file or assembly 'c:_Work\473cef3c\CHO\CHO.ALL\Tests\CHO.SAM.Business.Test\CHO.SAM.Business.Test\bin\Debug\xunit.execution.desktop.dll' or one of its dependencies. This assembly is b...

Id #9943 | Release: None | Updated: Sep 27, 2015 at 5:40 AM by ChocoMan | Created: Sep 27, 2015 at 5:40 AM by ChocoMan

Test filtering with msbuild

Currently test filtering is supported with mstest so that certain builds can run separate tests off the same assembly. Unfortunately, I haven't been able to find a good solution to replicate this w...

Id #9942 | Release: None | Updated: Jun 9, 2015 at 1:58 PM by TVP2 | Created: Jun 9, 2015 at 1:58 PM by TVP2

STAFact Attribut can not be resolved

Hi I try to write a unit test, which needs to create a WPF control. The tests fails with the error "Thread must be a STA-Tread". I tried to add the [STAFact] attribute to the testmethod, but V...

Id #9941 | Release: None | Updated: May 7, 2015 at 9:45 AM by RainerQ | Created: May 7, 2015 at 9:45 AM by RainerQ

Testing an assembly built against 'v2.0.50727' of the runtime

I have a dll under test that would typlically use App.config from the exe that is using it. e.g. the app config has <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version...

Id #9940 | Release: None | Updated: Mar 26, 2015 at 5:51 PM by meghma | Created: Mar 19, 2015 at 5:20 PM by meghma

Add msbuild targets file to xUnit NuGet package

UPDATE: This issue has been moved to GitHub Problem According to the wiki page titled How To Use MSBuild, one can use markup similar to the following to get xUnit MsBuild support. <Project Defaul...

Id #9939 | Release: None | Updated: Jan 30, 2015 at 5:26 PM by RobV8R | Created: Jan 25, 2015 at 10:28 PM by RobV8R

xUnit test in VS 2012

I don't see xUnit test in Test Explorer in VS 2012. I have installed xUnit.net: runner & xUnit.net here is my test public class MyClass { [Fact] public void MyTest() { Assert.Equal(4, 2+...

Id #9938 | Release: None | Updated: Jan 15, 2015 at 7:15 PM by bartelink | Created: Jan 15, 2015 at 3:44 AM by joblot

Run code before and after ALL tests

Any update whether this is possible now? Here you mentioned it will be done in release 2.0. If this is done, please provide an example on how to achieve this.

Id #9937 | Release: None | Updated: Oct 30, 2014 at 9:35 AM by bartelink | Created: Oct 29, 2014 at 5:08 PM by CodingYoshi

Discovery failing with vstest.console.exe

I'm not able to use the xUnit test adapter to discover tests when running as part of vstest.console.exe. I've got this all working fine on several dev boxes, but I'm not able to get our CI boxes to...

Id #9936 | Release: None | Updated: Jan 9, 2015 at 12:34 PM by bartelink | Created: Oct 29, 2014 at 7:47 AM by eddiesholl

Console output counts wrong

When running tests, the console output has a wrong total number of tests. . . . Tests complete: 113 of 115 Tests complete: 114 of 115 Tests complete: 115 of 115 Tests complete: 116 of 115 Tests com...

Id #9935 | Release: None | Updated: Oct 9, 2014 at 12:50 PM by bartelink | Created: Oct 9, 2014 at 11:43 AM by Blotto09

Tests with timeout attribute do not finish in TestExplorer

See s/o question: http://stackoverflow.com/questions/26184327/unit-test-keep-running-in-test-explorer-even-after-timeout-excedded

Id #9934 | Release: None | Updated: Oct 5, 2014 at 10:13 AM by robi_y | Created: Oct 5, 2014 at 10:13 AM by robi_y

xUnit 2.x replacement for IUseFixture

I need to initialize my database for a bunch of tests and want to do that once for ALL my tests. It looks like for version 1.x, I would accomplish this with IUseFixture. However, IUseFixture seem...

Id #9933 | Release: None | Updated: May 7, 2015 at 8:34 AM by JohnTunnicliffe | Created: Sep 2, 2014 at 9:45 PM by schallm

Update "How To Use" page with Nuget

It would be nice if the http://xunit.codeplex.com/wikipage?title=HowToUse page would include nuget instructions.

Id #9932 | Release: None | Updated: Sep 2, 2014 at 6:45 PM by schallm | Created: Sep 2, 2014 at 6:45 PM by schallm

Fully Qualified Name Displayed for Theories

I am using beta 4 of Xunit and version 0.99.8 of the xUnit.net runner to test F# code. Unlike facts, theories are displayed with fully-qualified namespace/module names making the content of the T...

Id #9931 | Release: None | Updated: Aug 23, 2014 at 6:55 PM by isoquark | Created: Aug 23, 2014 at 1:48 AM by isoquark

Timeout is not respected for Async facts and theories

This test completes successfully: [Fact] public async Task WaitLongerThanTimeout() { await Task.Delay(1000); } This test never completes: [Fact(Timeout=500)] public async Task WaitLongerThanTim...

Id #9930 | Release: None | Updated: Sep 24, 2014 at 12:16 PM by mihasic | Created: Aug 13, 2014 at 6:03 PM by airhed13

Could not find test executor with URI 'executor://xunit/VsTestRunner2'.

Could not find test executor with URI 'executor://xunit/VsTestRunner2'. Make sure that the test executor is installed and supports .net runtime version 2.0.50727.8000. VS 2013 update2, Win 8.1 x...

Id #9929 | Release: None | Updated: Sep 18, 2014 at 8:55 PM by bartelink | Created: Jul 12, 2014 at 3:34 PM by ig7799

System.IO.FileNotFoundException occurred

I am using VS2012 Ultimate with Update 4 and have installed xUnit v1.9.2 with xUnit TestRunner 0.99.7. At first my tests were discovered in the VS Test Explorer and were running too but every tim...

Id #9928 | Release: None | Updated: Jul 11, 2014 at 8:29 AM by achugh | Created: Jul 11, 2014 at 8:08 AM by achugh

DataAttribute with an Enum in the constructor breaks in 2.x

This code works fine with the latest stable release from NuGet (1.9.2 as of this writing). using System.Collections.Generic; using System.Reflection; using Xunit; using Xunit.Extensions; namespac...

Id #9922 | Release: None | Updated: Mar 22, 2014 at 10:13 PM by BradWilson | Created: Feb 24, 2014 at 2:05 PM by stijnherreman

Enable configurable maximum degree of parallelism

Support configuration via an assembly-level attribute, as well as via argument to the runners (command line or otherwise). Forum post: https://xunit.codeplex.com/discussions/474862

Id #9920 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:39 PM by BradWilson | Created: Feb 6, 2014 at 6:04 PM by BradWilson

Support data from methods, fields, and properties

The existing [PropertyData] attribute could be morphed into [MemberData], and support: Static fields Static properties Static methods (with parameters) For more information, see: https://xunit....

Id #9918 | Release: xUnit.net 2.0 | Updated: Mar 10, 2014 at 2:06 AM by BradWilson | Created: Jan 27, 2014 at 3:47 PM by BradWilson

Support settings via VS .runsettings file

What we would really like to be able to do is use production xUnit dll's in our builds that support the ability to read a property like "/noShadowCopy" from a .runsettings file (http://msdn.microso...

Id #9914 | Release: None | Updated: Mar 22, 2014 at 6:16 PM by BradWilson | Created: Dec 20, 2013 at 9:40 PM by BradWilson

Data driven tests showing long, not short result, in VS Test runner

Discovered in 99.1. Name display set to short in VS xunit options. Used to show Capture2.jpg, now shows long Capture.jpg Update: Sorry Brad, installed runner 99.2 and still seem to get long nam...

Id #9910 | Release: xUnit.net Visual Studio Runner | Updated: Mar 8, 2014 at 8:44 PM by BradWilson | Created: Dec 5, 2013 at 1:38 AM by jason_r

Remove all uses of Uri to get local file paths

Using the Uri class to convert assembly code base URIs into local file paths breaks when those paths contain special URI characters; namely, the hash symbol. Remove the uses of the Uri class and wr...

Id #9907 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:08 PM by BradWilson | Created: Dec 3, 2013 at 2:44 PM by BradWilson

Building or running with VS creates new temp directories

Every time VS runs test discovery with the xUnit.net runner (VS 2013, Windows 8.1 x64; runner version 0.99.0, I get at least one new temp directory that never gets deleted. The structure of the dir...

Id #9899 | Release: xUnit.net 2.0 | Updated: Jan 28, 2014 at 6:48 AM by knatten | Created: Nov 21, 2013 at 5:34 PM by davidmatson

Consider making TraitAttribute non sealed

This would allow to create more specific traits that allow to support better consistency in the usage of traits. For example it would be easy to create a CategoryAttribute that already sets the tr...

Id #9898 | Release: xUnit.net 2.0 | Updated: Mar 15, 2014 at 4:58 PM by BradWilson | Created: Nov 20, 2013 at 9:28 AM by MartinBohring

Returning Task doesn't work as expected for Canceled/Faulted

The following two tests just hang when I run them in VS: [Fact] public Task TestCanceledTask() { TaskCompletionSource<int> source = new TaskCompletionSource<int>(); source.SetCanceled(); ...

Id #9896 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:10 PM by BradWilson | Created: Nov 12, 2013 at 5:22 PM by davidmatson

Separate asserts from core library

The strategy would be: Separate libraries Separate NuGet packages ("xunit.core" and "xunit.assert") Offer source-based assertion option Meta-package ("xunit") references "xunit.core" and "xunit.as...

Id #9891 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:41 PM by BradWilson | Created: Nov 2, 2013 at 5:18 PM by BradWilson

Sort assembly list in MSBuild final results report

The assembly results report is in seemingly random order, and should be sorted by assembly name.

Id #9890 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:41 PM by BradWilson | Created: Nov 1, 2013 at 5:02 PM by BradWilson

Write errors in Error output in Console runner

Copied from https://xunit.codeplex.com/SourceControl/network/forks/dluk2/xunit/contribution/3635

Id #9888 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:37 PM by BradWilson | Created: Oct 26, 2013 at 10:32 PM by BradWilson

IUseFixture<T> doesn't capture exceptions

If an exception happens in the constructor of a T class of an IUseFixter<T> (so for example, an exception happens while creating/loading some data), nothing is written in the xUnit GUI. The tests a...

Id #9880 | Release: xUnit.net 2.0 | Updated: Oct 27, 2013 at 12:09 AM by BradWilson | Created: Sep 29, 2013 at 5:28 PM by xanatos

xUnit v2 attempts to run abstract classes

An abstract class with tests in it cannot be run, but xUnit v2 is trying to do it anyway. :)

Id #9879 | Release: xUnit.net 2.0 | Updated: Jan 18, 2014 at 4:44 PM by BradWilson | Created: Sep 25, 2013 at 9:30 PM by BradWilson

Change signature of ITestFramework.GetExecutor to take AssemblyName instead of string

See https://xunit.codeplex.com/discussions/451745#post1093333

Id #9877 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:45 PM by BradWilson | Created: Sep 20, 2013 at 4:34 PM by BradWilson

Two traits with the same name fails

Regression in v2 of functionality that previously worked in v1. See: https://xunit.codeplex.com/workitem/8443

Id #9875 | Release: xUnit.net 2.0 | Updated: Nov 3, 2013 at 10:03 PM by BradWilson | Created: Sep 9, 2013 at 4:46 PM by BradWilson

Exception when generic type contains no back tick

When an Assert.Equal assertion fails, the code reporting the failure throws an exception when an involved type is generic, but don't contain a back tick (`) in its type name. This is the case for...

Id #9868 | Release: xUnit.net 1.9.2 | Updated: Aug 24, 2013 at 6:28 PM by BradWilson | Created: Aug 9, 2013 at 6:45 AM by ploeh

Memory leak in VS runner

Reported by Terje Sandstrøm The Visual Studio Execution Engine holds onto the adapter. That is the default behavior if not any adapter in the chain explicitly tells it to shutdown. Currently no o...

Id #9857 | Release: xUnit.net 2.0 | Updated: Jan 18, 2014 at 6:47 PM by BradWilson | Created: May 2, 2013 at 4:19 PM by BradWilson

Support portable class libraries

Can we get xunit attributes defined in a portable class library, and the xunit runner able to run these tests so that we can use xunit to verify our portable class libraries on multiple platforms?

Id #9855 | Release: xUnit.net 2.0 | Updated: Mar 15, 2014 at 4:47 PM by BradWilson | Created: Apr 29, 2013 at 7:37 PM by AArnott

Console runner does not emit proper test names in TeamCity mode

When using xUnit under TeamCity (or using the /TeamCity flag to repro), the multiple executions of the same test (with different parameters) all produce the same output. teamcity[testStarted name='...

Id #9854 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:33 PM by BradWilson | Created: Apr 15, 2013 at 2:28 PM by piers7

Move TheoryData from test.utility to xunit2

Generally useful. :)

Id #9852 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:25 PM by BradWilson | Created: Apr 13, 2013 at 7:22 PM by BradWilson

Add [UseCulture] attribute

See pull request: https://xunit.codeplex.com/SourceControl/network/forks/ploeh/useculture/contribution/3061

Id #9850 | Release: xUnit.net 2.0 | Updated: Oct 27, 2013 at 12:31 AM by BradWilson | Created: Apr 10, 2013 at 3:41 PM by BradWilson

Use - instead of / for command line options

The console runner should use "-" instead of "/" as the prefix for command line options, as this better supports using the console runner from *nix/OS X using Mono.

Id #9849 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:26 PM by BradWilson | Created: Apr 10, 2013 at 2:57 PM by BradWilson

Assert.ThrowsArgument(Null) needs Func<object> and Task variants

.

Id #9837 | Release: xUnit.net 2.0 | Updated: May 5, 2013 at 1:10 AM by BradWilson | Created: Dec 15, 2012 at 10:18 PM by BradWilson

Add FlowId support for TeamCity

http://confluence.jetbrains.net/display/TCD7/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-MessageFlowId

Id #9833 | Release: xUnit.net 2.0 | Updated: May 5, 2013 at 1:07 AM by BradWilson | Created: Nov 28, 2012 at 4:36 PM by BradWilson

Publish XUnit Nuget package for WinRT so it can be used in standard WinRT class libraries

I refer to an issue #9826 that I believe is caused by the fact that there is no way to reference XUnit from a WinRT class library other than creating a test project from XUnit WinRT test project te...

Id #9827 | Release: xUnit.net 2.0 | Updated: Mar 15, 2014 at 4:59 PM by BradWilson | Created: Nov 3, 2012 at 5:33 PM by VagifAbilov

Failing build with XUnit and Windows store components

The sample code for this failure is located at GitHub: https://github.com/object/XUnitWinRT My failure scenario is not typical: instead of two projects (the component under the test and the test...

Id #9826 | Release: xUnit.net 2.0 | Updated: Mar 15, 2014 at 5:00 PM by BradWilson | Created: Nov 3, 2012 at 5:27 PM by VagifAbilov

Theory should support field data

Theory supports the PropertyData attribute. It would be nice to have a FieldData attribute as well. Static fields can be represented more compactly.

Id #9825 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:45 PM by BradWilson | Created: Nov 2, 2012 at 6:33 PM by brannon

Elapsed time is wrong for timeouts

Using the VS runner (with VS 2012/Win 8/latest xUnit as of today): [Fact(Timeout=1000)] public void TestSomething() { Thread.Sleep(1500); } The test fails because it excee...

Id #9822 | Release: xUnit.net 2.0 | Updated: Nov 1, 2012 at 2:05 AM by BradWilson | Created: Oct 30, 2012 at 9:00 PM by davidmatson

Test display names should be encoded before printing

This probably affects both the console and MSBuild runners (when not in TeamCity mode). When theories have newlines in the contained strings, those strings should be encoded. An example of a test...

Id #9818 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:34 PM by BradWilson | Created: Sep 9, 2012 at 3:10 AM by BradWilson

Exceptions from Dispose method should be aggregated with exceptions from test method

On occasion I like to use the Dispose() method on a test class to perform general asserts that should hold for every test case: public class Tests : IDisposable { public void Dispose() { // gener...

Id #9817 | Release: xUnit.net 2.0 | Updated: Jun 30, 2013 at 6:10 PM by BradWilson | Created: Sep 6, 2012 at 4:44 PM by marcind

Add Assert.Throws support for Task and Task<T>

suppose you have a test like this: [Fact] public async void Test1() { var foo = new Foo(); await foo.FailsAsync(); } How would you use Assert.Throws to verify foo.Fails throws an exp...

Id #9799 | Release: xUnit.net 2.0 | Updated: Feb 16, 2013 at 1:56 PM by gsscoder | Created: Jul 6, 2012 at 1:08 AM by BradWilson

Theory Data Disposal facility

When I use TheoryAttribute along with a ClassData that emits test parameters that are IDisposable, they don't get Dispose()d in the course of normal test execution. I've tried doing it in the Dis...

Id #9798 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:37 PM by BradWilson | Created: Jul 5, 2012 at 2:10 PM by BradWilson

Add cancellation support to MSBuild runner

http://msdn.microsoft.com/en-us/library/microsoft.build.framework.icancelabletask.aspx (Requires an MSBuild/.NET 4.0 dependency.)

Id #9797 | Release: xUnit.net 2.0 | Updated: Aug 4, 2012 at 8:46 PM by BradWilson | Created: Jul 4, 2012 at 6:39 PM by BradWilson

Test runner - add a node for each Theory data item

I first felt over this while using the R# runner. So I've tried the Gui runner and noticed that he also dose not add an item for each specific data item in a theory test. With this node it would be...

Id #9789 | Release: xUnit.net 2.0 | Updated: May 5, 2013 at 1:09 AM by BradWilson | Created: Apr 24, 2012 at 5:38 PM by lanwin

Expected/actual messages are weird with \n instead of \r\n

The expected/actual messages that are printed out today are properly indented when the strings contain \r\n, but when they contain only \n, they show up like they have newlines without indentation,...

Id #9788 | Release: xUnit.net 2.0 | Updated: Oct 27, 2013 at 12:34 AM by BradWilson | Created: Apr 20, 2012 at 12:24 AM by BradWilson

Allow Trait filtering from MSBuild runner

Filtering tests is currently supported using the console runner, however there is no support for it through MSBuild. Suggest adding Include and Exclude xml attribues in <xunit> element such as: <...

Id #9778 | Release: xUnit.net 2.0 | Updated: Feb 16, 2014 at 4:53 PM by BradWilson | Created: Mar 5, 2012 at 4:40 PM by hoserdude

TestRunner does not set ERRORLEVEL for file not found.

When I call the xunit.console.exe test runner with an assembly that does not exist, I get the following error: error: file not found: {assemblyFileName} The problem is that the exit code (ERROR...

Id #9775 | Release: xUnit.net 2.0 | Updated: Aug 4, 2012 at 7:21 PM by BradWilson | Created: Feb 21, 2012 at 3:03 AM by AlGonzalez

Allow discovery of traits via an interface

Today, the [Trait] attribute strongly describes one name and one value. We should allow attributes to implement an interface (ITraitProvider?) which allows them to return 0..n name/value pairs.

Id #9756 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 9:43 PM by BradWilson | Created: Dec 5, 2011 at 9:20 PM by BradWilson

Support void-returning async test methods

Async tests which return Task are already supported, but it would be nice to also support async tests which return void.

Id #9752 | Release: xUnit.net 2.0 | Updated: Aug 18, 2013 at 11:51 PM by BradWilson | Created: Nov 26, 2011 at 11:41 PM by BradWilson

"IUseFixture-like" for multiple classes

We are currently looking for a good alternative to Nunit and XUnit seems to be the one. One important feature seems to be missing which would raise XUnit to "god level" ;-). Story: We are using N...

Id #9748 | Release: xUnit.net 2.0 | Updated: Aug 18, 2013 at 5:36 PM by BradWilson | Created: Nov 3, 2011 at 6:18 PM by BradWilson

Support parallel unit test assemblies in runner API and runners

It would be nice to support parallelizing the unit test assemblies (one per core, perhaps?). This would mean that each assembly still runs sequentially (which means no complicated ordering issues w...

Id #9747 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 6:29 PM by BradWilson | Created: Oct 21, 2011 at 6:46 PM by BradWilson

Support running unit tests in MTA

Today, xUnit.net hard-codes tests to run in the STA. Consider adding some ability to run tests in the MTA (runner switch, attribute, etc.).

Id #9729 | Release: xUnit.net 2.0 | Updated: Mar 22, 2014 at 10:38 PM by BradWilson | Created: Jun 21, 2011 at 4:40 PM by BradWilson

msbuild runner output should reference source file, not project file

The StandardLogger's TestFailed method calls the simplified TaskLoggingHelper.LogError method, which (in this instance) decides to output the project filename, rather than the source code filename....

Id #9726 | Release: xUnit.net 2.0 | Updated: Mar 15, 2014 at 10:40 PM by BradWilson | Created: Jun 2, 2011 at 2:17 AM by moswald

Add assembly-level runner capability

To make [RunWith] more usable on a large scale, consider adding a global runner registration system which will allow the developer to return back either an ITestClassCommand and/or instances of ITe...

Id #9722 | Release: xUnit.net 2.0 | Updated: Oct 27, 2013 at 12:31 AM by BradWilson | Created: May 9, 2011 at 4:59 AM by BradWilson

BeforeAfterTestAttributes are run even when the test is skipped

Write a test that has a BeforeAfterTestAttribute on it that fails in the Before. Attach it to a test method which is skipped. Run the test. Expected: test is skipped Actual: the before/after cod...

Id #9721 | Release: xUnit.net 2.0 | Updated: Aug 18, 2013 at 5:44 PM by BradWilson | Created: May 6, 2011 at 5:12 PM by BradWilson

xUnit traps/buffers output from tests until the test is complete

When using NUnit, we're used to being able to see the progress of our long-running integration tests in the output from the build server (the tests write some progress output). xUnit appears to ...

Id #9715 | Release: xUnit.net 2.0 | Updated: Nov 5, 2013 at 6:50 PM by dparvin | Created: Jan 6, 2011 at 6:58 PM by wompeter

Console runner test count is incorrect when using data theories

Version Used: 1.6.1.1521 When using data-driven tests, the console runner reports its total as the total number of test methods, rather than test cases (context is the status message: "# of <Tota...

Id #9692 | Release: xUnit.net 2.0 | Updated: Aug 18, 2013 at 5:42 PM by BradWilson | Created: Jul 13, 2010 at 6:08 PM by cmrudolph

  • 1-64 of 64 Work Items
    • Previous
    • 1
    • Next