<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>xunit Forum Rss Feed</title><link>http://www.codeplex.com/xunit/Thread/List.aspx</link><description>xunit Forum Rss Description</description><item><title>New Post: xunit2 and before-all-tests hook</title><link>http://xunit.codeplex.com/discussions/443984</link><description>&lt;div style="line-height: normal;"&gt;thanks for the info&lt;br /&gt;
&lt;/div&gt;</description><author>kenegozi</author><pubDate>Fri, 17 May 2013 23:13:05 GMT</pubDate><guid isPermaLink="false">New Post: xunit2 and before-all-tests hook 20130517111305P</guid></item><item><title>New Post: xunit2 and before-all-tests hook</title><link>http://xunit.codeplex.com/discussions/443984</link><description>&lt;div style="line-height: normal;"&gt;&lt;a href="http://xunit.codeplex.com/discussions/440213" rel="nofollow"&gt;http://xunit.codeplex.com/discussions/440213&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://xunit.codeplex.com/wikipage?title=backlog&amp;amp;version=1" rel="nofollow"&gt;https://xunit.codeplex.com/wikipage?title=backlog&amp;version=1&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bartelink</author><pubDate>Fri, 17 May 2013 10:38:35 GMT</pubDate><guid isPermaLink="false">New Post: xunit2 and before-all-tests hook 20130517103835A</guid></item><item><title>New Post: xunit2 and before-all-tests hook</title><link>http://xunit.codeplex.com/discussions/443984</link><description>&lt;div style="line-height: normal;"&gt;In the following SO answer (&lt;a href="http://stackoverflow.com/questions/13829737/xunit-run-code-before-and-after-all-tests" rel="nofollow"&gt;http://stackoverflow.com/questions/13829737/xunit-run-code-before-and-after-all-tests&lt;/a&gt;), Brad hints about a before-all-tests hook to be implemented in xunit2.&lt;br /&gt;
&lt;br /&gt;
is this in the works? (or otherwise - done?)&lt;br /&gt;
&lt;br /&gt;
while at it - are there any details re xuni2 release?&lt;br /&gt;
&lt;/div&gt;</description><author>kenegozi</author><pubDate>Fri, 17 May 2013 00:40:14 GMT</pubDate><guid isPermaLink="false">New Post: xunit2 and before-all-tests hook 20130517124014A</guid></item><item><title>New Post: Book/tutorials for xunit</title><link>http://xunit.codeplex.com/discussions/442294</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no one such book.&lt;br /&gt;
&lt;br /&gt;
Have a look at  &lt;a href="http://stackoverflow.com/a/388485/11635" rel="nofollow"&gt;http://stackoverflow.com/a/388485/11635&lt;/a&gt; and similar questions on SO and you'll find there's a lot of disagreement and change.&lt;br /&gt;
&lt;br /&gt;
Having said that, I'd say Beck's TDD by Example is a must read. Osherove's book is an important read (even if I disagree with a lot of it) and xUnit Test Patterns is important (but only some people will actually read it to any major degree). (The Osherove book is being updated, maybe look at the EAP).&lt;br /&gt;
&lt;br /&gt;
And don't worry that none of the books cover xUnit.net directly - you've made a good choice and most things anyone needs to know about how it relates to any other test framework is covered on the comparison wiki article and reading the linked blog posts.&lt;br /&gt;
&lt;br /&gt;
Have you considered e.g. PluralSight courses?&lt;br /&gt;
&lt;br /&gt;
--R&lt;br /&gt;
&lt;/div&gt;</description><author>bartelink</author><pubDate>Thu, 02 May 2013 08:39:35 GMT</pubDate><guid isPermaLink="false">New Post: Book/tutorials for xunit 20130502083935A</guid></item><item><title>New Post: Book/tutorials for xunit</title><link>http://xunit.codeplex.com/discussions/442294</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I am new to xunit .is there any book/tutorial available , i am not able to locate anyone&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Akhil&lt;br /&gt;
&lt;/div&gt;</description><author>asingla</author><pubDate>Thu, 02 May 2013 05:21:57 GMT</pubDate><guid isPermaLink="false">New Post: Book/tutorials for xunit 20130502052157A</guid></item><item><title>New Post: Combinatorial testing</title><link>http://xunit.codeplex.com/discussions/441998</link><description>&lt;div style="line-height: normal;"&gt;The values given to a Theory with multiple parameters are dependent on the data source.  If you use the built-in PropertyData attribute, then your property could provide all available combinations:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;[Theory]
[PropertyData( &amp;quot;MyProperty&amp;quot; )]
public void T( param1, param2 ) { ... }

public static IEnumerable&amp;lt;object[]&amp;gt; MyProperty {
  get {
    foreach( object[] combination in /* produce parameter combinations */ )
      yield return combination;
  }
}&lt;/code&gt;&lt;/pre&gt;

You could also use the &lt;a href="http://typeresolver.codeplex.com/#Miscellaneous" rel="nofollow"&gt;MultiPropertyData&lt;/a&gt; or &lt;a href="http://typeresolver.codeplex.com/#MultipleArguments" rel="nofollow"&gt;InstanceData&lt;/a&gt; attributes from the &lt;a href="http://typeresolver.codeplex.com/" rel="nofollow"&gt;TypeResolver&lt;/a&gt; extension to generate all combinations of arguments for you.&lt;br /&gt;
&lt;br /&gt;
Or you could create a custom data provider attribute to use with your theories.&lt;br /&gt;
&lt;/div&gt;</description><author>EmperorXLII</author><pubDate>Mon, 29 Apr 2013 23:57:18 GMT</pubDate><guid isPermaLink="false">New Post: Combinatorial testing 20130429115718P</guid></item><item><title>New Post: Combinatorial testing</title><link>http://xunit.codeplex.com/discussions/441998</link><description>&lt;div style="line-height: normal;"&gt;Does xunit support combinatorial testing? NUnit has [Theory] and [Pairwise] attributes which in some of my testing is crucial and would block my moving the tests to xunit.&lt;br /&gt;
&lt;/div&gt;</description><author>AArnott</author><pubDate>Mon, 29 Apr 2013 19:39:50 GMT</pubDate><guid isPermaLink="false">New Post: Combinatorial testing 20130429073950P</guid></item><item><title>New Post: On the question of v2 stability</title><link>http://xunit.codeplex.com/discussions/440213</link><description>&lt;div style="line-height: normal;"&gt;&lt;em&gt;&lt;strong&gt;Latest Update:&lt;/strong&gt; April 13&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Latest Build:&lt;/strong&gt; 2.0 Alpha (build 1644)&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
This thread will serve as a place to keep track of the stability and features of xUnit.net version 2 while it evolves towards RTM. Since v2 is a complete engine re-write, we will be progressively adding features over time, and your choice when to starting using it will likely depend on your particular usage.&lt;br /&gt;
&lt;br /&gt;
From a core feature perspective, we are doing our best to ensure that features stay stable, even though the system is still in alpha. In addition to xUnit.net being self-testing, we are also currently using v2 at our day jobs, so we do at least have some trust in the stability of the system. :) We would greatly appreciate any feedback on design and stability; the sooner we find issues, the sooner they can get resolved.&lt;br /&gt;
&lt;br /&gt;
End users should find that their v1 test code runs mostly unchanged on v2. If you've used the extensibility points, or you're a runner author, many things have changed (and are still changing on a weekly basis). If you find one of your extensibility points has changed, please start a new thread so we can discuss the new design.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Features in bold are new or improved in v2&lt;/em&gt;&lt;br /&gt;
&lt;h3&gt;Implemented Features&lt;/h3&gt;
Core Library:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;[Fact]&lt;/li&gt;
&lt;li&gt;[Trait]&lt;/li&gt;
&lt;li&gt;BeforeAfterTestAttribute&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;[Theory]&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;[InlineData]&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;[PropertyData]&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
Async tests (must return Task)&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Assertion Library:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Boolean:&lt;/em&gt; False, True&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Collection:&lt;/em&gt; &lt;strong&gt;Collection&lt;/strong&gt;, Contains, DoesNotContain, Empty, Equal, &lt;strong&gt;None&lt;/strong&gt;, NotEmpty, NotEqual, Single&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Equality:&lt;/em&gt; Equal, NotEqual, NotNull, NotSame, Null, Same&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Exception:&lt;/em&gt; &lt;strong&gt;DoesNotThrow&lt;/strong&gt;, &lt;strong&gt;Throws&lt;/strong&gt; (enhanced to support Task-returning lambdas)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Properties:&lt;/em&gt; PropertyChanged&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Range:&lt;/em&gt; InRange, NotInRange&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;String:&lt;/em&gt; Contains, DoesNotContain, &lt;strong&gt;Equal&lt;/strong&gt; (much better messages for Equal)&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Extensibility and Runner Library:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Extensions of [Fact] support discoverers for better support for test case discovery from AST-based runners (like Resharper and CodeRush)&lt;/li&gt;
&lt;li&gt;Data attributes support discoverers for better enumeration support during discovery&lt;/li&gt;
&lt;li&gt;Test enumeration includes individual test cases per data row, when the information is available during discovery&lt;/li&gt;
&lt;li&gt;Integrated support for source information during discovery&lt;/li&gt;
&lt;li&gt;
New abstraction library replaces the old XML communication system from v1&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Runners and Continuous Integration:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;TestDriven.net v3+&lt;/li&gt;
&lt;li&gt;MSBuild &amp;quot;xunit&amp;quot; task (no support for XML or HTML output yet)&lt;/li&gt;
&lt;li&gt;
TeamCity (via MSBuild runner)&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Pending Features&lt;/h3&gt;
Core Library:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Per-class setup and teardown (IClassFixture&amp;lt;T&amp;gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Per-test collection setup and teardown&lt;/strong&gt; (ICollectionFixture&amp;lt;T&amp;gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test collections&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parallelized execution&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Async tests&lt;/strong&gt; (which return void)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;[FieldData]&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TheoryData&lt;/strong&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Assertion Library:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Collection:&lt;/em&gt; &lt;strong&gt;All&lt;/strong&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Extensibility and Runner Library:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Discovery of traits via interface&lt;/strong&gt; (allowing 0-n)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configurable test frameworks&lt;/strong&gt; (defines discovery mechanism)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Default test collections&lt;/strong&gt; (per-assembly, per-class, custom)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single unified API supporting both xUnit v1 and v2 tests&lt;/strong&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Runners and Continuous Integration:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Console runner&lt;/li&gt;
&lt;li&gt;Visual Studio 2012&lt;/li&gt;
&lt;li&gt;MSBuild &amp;quot;xunitproject&amp;quot; task&lt;/li&gt;
&lt;li&gt;Team Foundation Build&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>BradWilson</author><pubDate>Sun, 14 Apr 2013 07:09:41 GMT</pubDate><guid isPermaLink="false">New Post: On the question of v2 stability 20130414070941A</guid></item><item><title>New Post: Debugging tests makes VS2012 crash</title><link>http://xunit.codeplex.com/discussions/439773</link><description>&lt;div style="line-height: normal;"&gt;xUnit.net runner for Visual Studio 2012 v0.9.5.1&lt;br /&gt;
&lt;br /&gt;
It seems like any test will make it crash. I've had no problem with this runner on other projects, and I haven't tried any other runner (but I'm using xUnit exclusively).&lt;br /&gt;
&lt;/div&gt;</description><author>cartoixa</author><pubDate>Wed, 10 Apr 2013 16:50:26 GMT</pubDate><guid isPermaLink="false">New Post: Debugging tests makes VS2012 crash 20130410045026P</guid></item><item><title>New Post: Debugging tests makes VS2012 crash</title><link>http://xunit.codeplex.com/discussions/439773</link><description>&lt;div style="line-height: normal;"&gt;Which runner are you using to debug? Does it crash on a particular test, or just always crash before running any tests? Have you tried any other runners than the one you're using?&lt;br&gt;
&lt;/div&gt;</description><author>BradWilson</author><pubDate>Wed, 10 Apr 2013 14:47:38 GMT</pubDate><guid isPermaLink="false">New Post: Debugging tests makes VS2012 crash 20130410024738P</guid></item><item><title>New Post: Debugging tests makes VS2012 crash</title><link>http://xunit.codeplex.com/discussions/439773</link><description>&lt;div style="line-height: normal;"&gt;I'm using xUnit to develop tests for GeoSIK (&lt;a href="https://geosik.codeplex.com/" rel="nofollow"&gt;https://geosik.codeplex.com/&lt;/a&gt;), and have been quite happy with it for some time.&lt;br /&gt;
&lt;br /&gt;
I recently upgraded the whole stack from VS2010 to VS2012 (cf. &lt;a href="https://geosik.codeplex.com/SourceControl/changeset/d6ea54f0e213" rel="nofollow"&gt;https://geosik.codeplex.com/SourceControl/changeset/d6ea54f0e213&lt;/a&gt;). Now it seems I am almost unable to debug my tests from Visual Studio: the IDE will crash 2/3 times while launching the debug session. And sometimes the tests will not launch at all...&lt;br /&gt;
&lt;br /&gt;
The xUnit console manages to execute the tests without a glitch. Note that this project is quite large, due to the vast amount of generated code that is included in it (~500K LOC).&lt;br /&gt;
&lt;br /&gt;
Any idea?&lt;br /&gt;
&lt;br /&gt;
I am using VS2012 Ultimate, Update 2 on Windows 8 Professional.&lt;br /&gt;
&lt;/div&gt;</description><author>cartoixa</author><pubDate>Wed, 10 Apr 2013 12:37:43 GMT</pubDate><guid isPermaLink="false">New Post: Debugging tests makes VS2012 crash 20130410123743P</guid></item><item><title>New Post: Assert.Equal with doubles within the number of decimal places</title><link>http://xunit.codeplex.com/discussions/439542</link><description>&lt;div style="line-height: normal;"&gt;It is common when comparing numbers to within a specific amount of precision to use rounding rather than flooring.&lt;br&gt;
&lt;br&gt;
Let's take a simpler example. Say I wrote this:&lt;br&gt;
&lt;br&gt;
Assert.Equal(1.2, 1.199999999999, 2)?&lt;br&gt;
&lt;br&gt;
Would you be surprised if that failed? I'm sure most people would be. It is equal when considered from two digits of precision, because 1.199999999999 is clearly much closer to 1.20 than it is to 1.19.&lt;br&gt;
&lt;/div&gt;</description><author>BradWilson</author><pubDate>Mon, 08 Apr 2013 23:16:00 GMT</pubDate><guid isPermaLink="false">New Post: Assert.Equal with doubles within the number of decimal places 20130408111600P</guid></item><item><title>New Post: Assert.Equal with doubles within the number of decimal places</title><link>http://xunit.codeplex.com/discussions/439542</link><description>&lt;div style="line-height: normal;"&gt;The method &amp;quot;Assert.Equal(double expected, double actual, int precision)&amp;quot; rounds the expected and the actual values before comparing them.&lt;br /&gt;
&lt;br /&gt;
So Assert.Equal(12.664, 12.666, 2) fails, but the numbers are equals up to second decimal place.&lt;br /&gt;
&lt;br /&gt;
Wouldn´t be correct to floor the numbers to the specified number of decimal places instead of round them?&lt;br /&gt;
&lt;/div&gt;</description><author>bolha7</author><pubDate>Mon, 08 Apr 2013 18:29:06 GMT</pubDate><guid isPermaLink="false">New Post: Assert.Equal with doubles within the number of decimal places 20130408062906P</guid></item><item><title>New Post: MonoDevelop Add-in</title><link>http://xunit.codeplex.com/discussions/439410</link><description>&lt;div style="line-height: normal;"&gt;I don't believe there is. MonoDevelop has an nunit addin, but it's completely bespoke - there isn't a unit testing API that nunit plugs into. So, for xunit support, it would require re-implementing most of the nunit plugin infrastructure. Or, extracting a common infrastructure and implementing a plugin model.&lt;br /&gt;
&lt;/div&gt;</description><author>mattellis</author><pubDate>Sun, 07 Apr 2013 19:22:52 GMT</pubDate><guid isPermaLink="false">New Post: MonoDevelop Add-in 20130407072252P</guid></item><item><title>New Post: MonoDevelop Add-in</title><link>http://xunit.codeplex.com/discussions/439410</link><description>&lt;div style="line-height: normal;"&gt;Is there a xunit.net MonoDevelop Add-in that you're aware of?&lt;br /&gt;
&lt;/div&gt;</description><author>justinc</author><pubDate>Sun, 07 Apr 2013 14:30:32 GMT</pubDate><guid isPermaLink="false">New Post: MonoDevelop Add-in 20130407023032P</guid></item><item><title>New Post: XUnit and Team Build 2010 (workflow)</title><link>http://xunit.codeplex.com/discussions/241679</link><description>&lt;div style="line-height: normal;"&gt;I was really interested in reading your article to see if it will help me get it working for Team Build 2012.  When I click on your line I get a 404 error.  Is it possible you have the article someplace else?  Is there a new one for 2012?&lt;br /&gt;
&lt;/div&gt;</description><author>dparvin</author><pubDate>Thu, 28 Mar 2013 22:26:25 GMT</pubDate><guid isPermaLink="false">New Post: XUnit and Team Build 2010 (workflow) 20130328102625P</guid></item><item><title>New Post: How to run multiple assemblies?</title><link>http://xunit.codeplex.com/discussions/42558</link><description>&lt;div style="line-height: normal;"&gt;Here's a simple batch script to create an xunit project file containing all of the assemblies under a given folder.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;@echo off
setlocal EnableExtensions

set ProjectFile=&amp;quot;sample.xunit&amp;quot;
set AssemblyRootDir=&amp;quot;dlls&amp;quot;

echo ^&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?^&amp;gt; &amp;gt;&amp;gt; %ProjectFile%
echo ^&amp;lt;xunit^&amp;gt; &amp;gt;&amp;gt; %ProjectFile%
echo ^&amp;lt;assemblies^&amp;gt; &amp;gt;&amp;gt; %ProjectFile%
for /r %%I in (%AssemblyRootDir%\*.dll) do (
    echo ^&amp;lt;assembly filename=&amp;quot;%%~fsI&amp;quot; shadow-copy=&amp;quot;true&amp;quot; /^&amp;gt; &amp;gt;&amp;gt; %ProjectFile%
)
echo ^&amp;lt;/assemblies^&amp;gt; &amp;gt;&amp;gt; %ProjectFile%
echo ^&amp;lt;/xunit^&amp;gt; &amp;gt;&amp;gt; %ProjectFile%&lt;/code&gt;&lt;/pre&gt;

You can adjust the parameters as needed for your situation.&lt;br /&gt;
&lt;br /&gt;
Have fun!&lt;br /&gt;
&lt;/div&gt;</description><author>cravelight</author><pubDate>Thu, 28 Mar 2013 14:04:18 GMT</pubDate><guid isPermaLink="false">New Post: How to run multiple assemblies? 20130328020418P</guid></item><item><title>New Post: Visual Basic Writing Fact</title><link>http://xunit.codeplex.com/discussions/437663</link><description>&lt;div style="line-height: normal;"&gt;Thank you,&lt;br /&gt;
&lt;br /&gt;
It works :)&lt;br /&gt;
&lt;/div&gt;</description><author>altinburak</author><pubDate>Wed, 27 Mar 2013 11:58:12 GMT</pubDate><guid isPermaLink="false">New Post: Visual Basic Writing Fact 20130327115812A</guid></item><item><title>New Post: DATE TEST Unit test fails on conversion</title><link>http://xunit.codeplex.com/discussions/437326</link><description>&lt;div style="line-height: normal;"&gt;Thank you Brad major help! Moved my project right along&lt;br /&gt;
&lt;/div&gt;</description><author>CrisHooker28</author><pubDate>Mon, 25 Mar 2013 13:25:00 GMT</pubDate><guid isPermaLink="false">New Post: DATE TEST Unit test fails on conversion 20130325012500P</guid></item><item><title>New Post: Visual Basic Writing Fact</title><link>http://xunit.codeplex.com/discussions/437663</link><description>&lt;div style="line-height: normal;"&gt;I'm not a VB guy, but I think the syntax is something like:&lt;br /&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&amp;lt;Fact(&lt;span style="color:Blue;"&gt;Skip&lt;/span&gt;:=&lt;span style="color:#A31515;"&gt;&amp;quot;Skip message&amp;quot;&lt;/span&gt;)&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><author>BradWilson</author><pubDate>Fri, 22 Mar 2013 17:17:16 GMT</pubDate><guid isPermaLink="false">New Post: Visual Basic Writing Fact 20130322051716P</guid></item></channel></rss>