Andrew Ducker (andrewducker) wrote,
Andrew Ducker

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.

  • instagram cross-post

    Sophia insisted I shave off my whole beard yesterday. So, of course, I did it in stages. Original is here on instagram. Original post on…

  • instagram cross-post

    Ah well, if you can't be in nursery then you might as well go for a walk somewhere where you won't be close to people. Original is here on…

  • instagram cross-post

    A shy local nature sprite peers down at my from its nest. I tried to reassure it, but it scampered off up a branch and was soon lost to mortal…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened