How to make NUnit assertion failures show line numbers for C++? -


When I run the NUINIT test against my C ++ code and a representation fails, I do not get the line number where the failure occurs. I

.

Sample method:

  [Exam] Zero testing method () {Modified :: Failure ("Test comment"); }  

Sample output:

[nunit2] Failures:

[nunit2] 1) Namespace. some. Test method: Test comment

[nunit2] at namespace. some. Test method ()

Similar output for any implant failure (even without line numbers) is generated.

When looking at my output, how can I get information on the line number for which the line failed?

Again check that you are building your classes with Debug Information (PDB).

The dependent structure basically throws an exception when thrust fails and the exception captures a StackTrace. Stack trace gets line number from this executable associated PDB file.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -