Build/Test Issues

NullReferenceException when ncrunch commandline tool finishes

Started by plillevold on 5,079 views

Hi!
Trying out the NCrunch commandline tool. On one of my larger projects, the tool completes and reports are generated, but a NullReferenceException is reported from the reporting engine. Not sure what impact this have, though...

...
[11:11:38.5771-Core-12] Successfully completed execution of 8 tests on local machine
[11:11:38.6259-Core-12] Successfully completed execution of 8 tests on local machine
[11:11:38.6708-Core-12] Successfully completed execution of 8 tests on local machine
[11:11:40.1435-?-1] Reporting engine execution results
ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.Reports.NCrunchResultsReport.#=q4apg_MUUq$EfpEu6PvzrUA==(UITest #=ql3WMj8hviWW1Ph8BkAGAmg==)
at nCrunch.Client.Reports.NCrunchResultsReport.#=qVxLWG6mpZuv6Lt0gEV$XQNFYPdeWckrV5_0No79EMcE=(SnapshotComponent #=qyOx26gLyA0By3MQTi9sg7Q==)
at nCrunch.Client.Reports.NCrunchResultsReport.#=qXWgGiN2$t2_e8qrSHR0Ffw==(SnapshotComponent #=qeQJ9r_jnbv8ZmV0yXUKF3w==)
at nCrunch.Client.Reports.NCrunchResultsReport.WriteReport(DiskPath resultsOutputFile)
at #=qf$WqcaQazfTQJODB7BoOTeI6a224$4UCuKDYW3TBxG9V49xpIaRnhBNM1li$aMGB.#=qfksLU_BOo3k092erwyY3Wg==(DirectoryPath #=q63rNTVsvkBwZKYZmO2wP3uOYARF6AftNa2Idh19hkaI=)
at #=qf$WqcaQazfTQJODB7BoOTeI6a224$4UCuKDYW3TBxG9V49xpIaRnhBNM1li$aMGB.#=q2xH5vrcLUgZvSrl3r4AM7A==(#=qjeDfIPQChe9fPhsHIHK5dVsZk0bF_t9vYvSwfrfnhT60lk_IcfxlQl_tJ63RdkV_ #=qZ0nVDJszjF89iUQrzRa9Xg==)
at #=qKpOoZ6_xW1v4EODPPTOrvnt0N8rHjw9MvTr6NDVYQq4=.#=qMfnY6q3U$fwJUOZqUjYraA==(String[] #=qDY$WZRw2VGXbLkFH0dGHWA==)
Hi Peter,

Thanks for sharing this issue. It looks like NCrunch is trying to report on a fixture with inconsistent data. I'll need to get you a diagnostic build so that we can learn more about this fixture in order to solve the problem. I'll have it ready for you soon!


Cheers,

Remco
Ok - I've managed to reproduce and resolve this issue.

The fix is included in a new build that I've just pushed up to the download page. The new revision is 2.8.0.36. Give it a spin and let me know how it goes!
Awesome, the new version completes without any complaints. Thanks for the quick resolution!

Post a reply

Log in to reply.