This project is read-only.

NullReferenceException when no tests are executed


I have a trx file created in mstest (VS2010), but there was an error on the command line, and none of the 700 tests were executed.
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at trx2html.Parser.TrxParser.<Parse>b__c(<>f__AnonymousType3`2 <>h__TransparentIdentifier3)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at trx2html.Parser.TestRunResult..ctor(String name, String runUser, IEnumerable`1 items)
   at trx2html.Parser.TrxParser.Parse(String filePath)
   at trx2html.ReportGenerator.GenerateReport(String fileName)
   at trx2html.Program.Main(String[] args)

file attachments


MatthewPickle wrote Nov 29, 2011 at 9:18 PM

I'm getting the same error. Running 3 tests. First 2 Pass, and the 3rd results in Error.

ridomin wrote Dec 4, 2011 at 12:05 AM

could you provide the .trx file that is causing this exception?



wrote Dec 12, 2011 at 7:15 PM

MatthewPickle wrote Dec 12, 2011 at 7:15 PM

Please see attached.

wrote Feb 14, 2013 at 8:38 PM