I ran into trouble with the buildserver the last two days. Suddenly a lot of tests were failing that were running ok on my computer. Today I found out what the problem was:
I tried reusing the TestModel and TestDataItem by referencing to another testproject from DelftShell.Plugins.ProjectExplorer.Tests. Because I referenced the other testproject its assembly got copied next to my testassembly. That's when a lot of strange things started to happen:

suddenly the testcount increased to 400 (previously it had been 285)
I got an error "DragDrop Registration did not Succeed" with showed a dialog on the buildserver causing the testproject to take forever

Today I made a seperate assembly to contain TestDataItem and TestModel. This assembly is now referenced by my test and the original test. The testcount dropped to 285 and no errors are occuring.

DO NOT REFERENCE BETWEEN TEST CLASSES!!!!!

  • No labels