May 27, 2008Re: Unit Testing for "D".
Posted in reply to Nick B
Reply to Nick, > http://www.sdtimes.com/content/article.aspx?ArticleID=32234 > > I came across this article on SD Times. I thought it might be of > interest to readers on this newsgroup. > > In essence, Agitar who _was_ the leading vendor for unit testing on > the Java platform, has decided to cease business. The reason is that > not > enough companies had got on the Unit Testing band wagon. > I thought their technology and architecture was excellent, even though > it was Java focused. > I had hoped similiar unit testing software might come to "D". > It could even be viable as Open Source business, assuming that the > VC's > don't become involved. > One thing I should point out is that Agitar _automatically_ created > the > unit tests itself. The user just had to confirm that tests were > valid or not, or a bug. > Does anyone have an interest in this area on this newsgroup ? Any > other thoughts / comments ? > > cheers > > Nick B > somewhere I built a function that would take an array of just about anything and generate some asserts (as text) that would check to see if the array was it's self. Run the unittests, paste in the output in place of the function call and you have a unittest. With a bit of trickery to figure out where you are calling from I could envision test system that would let you sketch out a unittest and then when run would make a patch file that fills in the details with whatever the code actually does.