Summary ------- Test Run Completed. Passed 80 ---------- Total 80 Results file: C:\BuildAgent\Ws\44\MSTestOutput_130096146394719387.trx Test Settings: Default Test Settings
Action has failed due to an error. Object reference not set to an instance of an object.
I haven’t been able to reproduce this here, so I suspect there must be something in the trx file we are not parsing properly. Are you able to send us the trx file (to support at finalbuilder.com) so we can run the parser over it under the debugger?
so it seems it depends on one of our projects. i’ve tested both separatly and the last one finished successfully. the other one throws the exception. maybe i can find the difference in visual studio. i’ll have a look.
so the NRE comes directly before any test is executed. so it seems it has nothing to do with the TRX file. must happen before or with the execution of mstest.exe
What settings do you have on your MSTest action. I have changed the error handling so that it logs the stack trace when parsing the results file, however so far I have not been able to get any errors.
as is said, its only throwing that NRE on one specific project. all other work. as the action occurs, before any output is visible, i think is doesn’t depend on the TRX file at all. i’ve just set the pattern for .dll test libraries. nothing special.
who is parsing the .trx file? some internal code or do you use something i can test here by mysql? because the tests were executed and the result file seems to be complete.
We are, it’s an xml file. That’s why I asked you for your trx file before, I added a unit test to parse the file and it it’s parsing fine. I will look at the logging again today and try parsing and invalid file. What would be really useful is if you are able to provide us with the assemblies you are testing, then we would be able to run the action against them and see what is going on. Don’t post them here, zip up and email to support at finalbuilder.com