I was testing my "small" aop framework
https://github.com/AlbertoMonteiro/ThrowHelper
I injected IL after build, and I was trying to tests Instructions count with Mono.Cecil, but something was wrong, the instruction count was very higher than should be, so I dissabled it and saw that you inject some NCrunch calls, whats the purpose?
Remco NCrunch Developer
#2022
28 May 2012 03:31 UTC
Hi,
This is due to the instrumentation that NCrunch introduces in order to analyse code coverage at runtime. You can turn off instrumentation in your NCrunch project configuration, but note that by doing this you will lose code coverage for the entire project. My suggestion would be to use an "#if NCRUNCH" directive to introduce alternative behaviour for your test while it is running under NCrunch.
Cheers,
Remco
This is due to the instrumentation that NCrunch introduces in order to analyse code coverage at runtime. You can turn off instrumentation in your NCrunch project configuration, but note that by doing this you will lose code coverage for the entire project. My suggestion would be to use an "#if NCRUNCH" directive to introduce alternative behaviour for your test while it is running under NCrunch.
Cheers,
Remco
Yeah, I saw here:
https://gist.github.com/2817057
Thats very nice!!!
Btw, I love Mono.Cecil!!!
I changed the logic test.
Now I test the added instruction instead of testing the total number of instructions, thus, no need to worry about the code inserted by him
https://gist.github.com/2817057
Thats very nice!!!
Btw, I love Mono.Cecil!!!
I changed the logic test.
Now I test the added instruction instead of testing the total number of instructions, thus, no need to worry about the code inserted by him
Edited 28 May 2012 03:38 UTC
Deleted post
#2397
10 Jul 2012 01:55 UTC
Deleted post
#2402
10 Jul 2012 02:06 UTC
Deleted post
#2418
10 Jul 2012 11:03 UTC
Deleted post
#2419
10 Jul 2012 11:03 UTC
Deleted post
#2420
10 Jul 2012 11:08 UTC
Deleted post
#2508
25 Jul 2012 03:18 UTC
Post a reply
Log in to reply.