Andrew Ducker (andrewducker) wrote,
Andrew Ducker
andrewducker

Testing Framework Fun

The most exciting time at work in the last few days was when I discovered that the profiler I'd downloaded wouldn't profile signed DLLs or EXEs (and that NUnit is signed), so I ended up writing my own version of NUnit, and discovering that it wasn't that hard to do the basics. Or at least, it took me about an hour to knock together something that searches a DLL for classes tagged as fixtures, checks each one for test methods, setup methods and teardown methods, and then calls them all in the order you'd expect. It was good enough to run through our complete test suite, in about 1/4 of the time that NUnit takes. Which makes me think that the reason our test suite takes as long as it does is due to something that NUnit is doing with each test - possibly creating a new AppDomain for each test, or something else to keep them all separated from each other. I'm going to have a play with it on Monday and see if I can figure out a little more, but it's nice to know that the slowness isn't actually in our code.
Subscribe

  • instagram cross-post

    I think Gideon likes me. (He just crawled the length of the room, climbed on to the sofa, and rested his head on my shoulder) Original is…

  • Interesting Links for 31-07-2021

    MPs condemn shocking conditions for asylum seekers in Dover (tags: UK asylum OhForFucksSake ) A brief history of The Yoghurt Wars (tags:…

  • instagram cross-post

    My ladies of the castle. Original is here on instagram. Original post on Dreamwidth - there are comments there.

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 2 comments