It was the changeover that they seemed to all (well, mostly) break. Xunit 
doesn't work the same way as MSBuild or NUnit so any tests that require 
test-case initialization and tear-down would fail. With some extensibility I 
was able to put that behavior back, for the most part. Nearly finished.


The really, super annoying thing has been having to walk around xunit's sticks 
in the sand, regarding user messages for Asserts (or lack thereof) and that 
even those Asserts that support user messages don't support params parameters 
like String.Format, so I have to add that in everywhere to maintain the 
existing behavior.


All tests but WixTests are building and almost all of those are passing.


I also took the opportunity with the extensibility to skip tests that are 
runtime tests when runtime tests aren't enabled rather than fail, skip runtime 
tests that require elevation (the assumed default - tests can declare 
themselves NonPrivileged), and skip tents that are 64-bit specific when not 
running under a 64-bit process. These are effectively trait attributes, and 
will be proper TraitAttribute-derivatives once Xunit 2.0 releases (or I can now 
if we want to take a pre-rely, doesn't really change much, though).


Since I had to define a custom attribute anyway, I renamed NamedFact to 
TestMethodAttribute, and added traits PriorityAttribute, DescriptionAttribute, 
RuntimeTestAttribute, and Is64BitSpecificTestAttribute.


I'll have a pull request in a day or two. All that's left in the WixTests 
project is wrapping a bunch of user messages in String.Format. I have 167 
instances to fix up yet where regex-based replacement may not be of much help. 
I'm considering options for automation, including Roslyn at least to help 
automate the changes.






- Heath from his Surface Pro





From: Hoover, Jacob
Sent: ‎Monday‎, ‎June‎ ‎9‎, ‎2014 ‎6‎:‎27‎ ‎AM
To: Windows Installer XML toolset developer mailing list






I don’t know when they “all broke”, but I do know I had tests failing when I 
was trying to validate changes I had submitted.  Some of them had to do with 
case sensitivity of paths, but I can’t remember the others.  I do think at one 
point in time I had made an attempt to fix it, but with the changeover in 
testing frameworks I never submitted a pull request.

 

 



From: Heath Stewart [mailto:hea...@outlook.com] 
Sent: Monday, June 09, 2014 2:26 AM
To: Windows Installer XML toolset developer mailing list
Subject: [WiX-devs] Test overhaul

 



I've nearly got the fully xunit-based test system working again. I felt it 
important to get it working again whilst checking in all the new code, some of 
which are new tests. I was able to keep some of the same behavior, like 
something similar to TestInitialize and TestCleanup attributed methods. Once 
xunit 2.0 releases (I've got some TODOs in the code as reminders) I can beef it 
up more, but xunit's current extensibility gave me some new options. Just 
trying to get the TestDataDirectory working, which points to 
%WIX_ROOT%\tests\data without relying on the environment variable.


 


Perhaps this is more directed at Rob or Bob, but I'm curious if there were any 
tests failing before they all broke. I recall that some of the burn tests were 
failing and we turned them off in the internal fork, but all the tests in 
WixTest.dll are working.



 


- Heath from his Surface Pro
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to