digitalmars.D - Unit tests
- Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> Feb 18 2010
- "Nick Sabalausky" <a a.a> Feb 18 2010
- "Nick Sabalausky" <a a.a> Feb 19 2010
I know there are a lot of D programmers rooting for enhancements to the unittests in D (and I don't want to re-open that discussion), but are there any of the best and brightest among us who have developed a module to allow for named tests and tests that keep running following a failure, etc. I apologize if this is a question that's already been asked and answered. Paul
Feb 18 2010
"Paul D. Anderson" <paul.d.removethis.anderson comcast.andthis.net> wrote in message news:hlkjef$1vj9$1 digitalmars.com...I know there are a lot of D programmers rooting for enhancements to the unittests in D (and I don't want to re-open that discussion), but are there any of the best and brightest among us who have developed a module to allow for named tests and tests that keep running following a failure, etc. I apologize if this is a question that's already been asked and answered. Paul
My SemiTwist D Tools project has a module "deferAssert" (final name pending) that allows continuation anfer failure and provides improved diagnostic messages. It doesn't have any mechanism for named or grouped unittests, but doing so ad-hoc shouldn't be hard with it. At the moment it's D1/Tango, but it'll move to D2 (along with the rest of SemiTwist D Tools) once Tango goes D2. Example Usage: http://www.dsource.org/projects/semitwist/browser/trunk/src/semitwist/apps/tests/deferAssertTest/main.d Module: http://www.dsource.org/projects/semitwist/browser/trunk/src/semitwist/util/deferAssert.d
Feb 18 2010
"Nick Sabalausky" <a a.a> wrote in message news:hlkrq5$2dl3$1 digitalmars.com..."Paul D. Anderson" <paul.d.removethis.anderson comcast.andthis.net> wrote in message news:hlkjef$1vj9$1 digitalmars.com...I know there are a lot of D programmers rooting for enhancements to the unittests in D (and I don't want to re-open that discussion), but are there any of the best and brightest among us who have developed a module to allow for named tests and tests that keep running following a failure, etc. I apologize if this is a question that's already been asked and answered. Paul
My SemiTwist D Tools project has a module "deferAssert" (final name pending) that allows continuation anfer failure and provides improved diagnostic messages. It doesn't have any mechanism for named or grouped unittests, but doing so ad-hoc shouldn't be hard with it. At the moment it's D1/Tango, but it'll move to D2 (along with the rest of SemiTwist D Tools) once Tango goes D2. Example Usage: http://www.dsource.org/projects/semitwist/browser/trunk/src/semitwist/apps/tests/deferAssertTest/main.d Module: http://www.dsource.org/projects/semitwist/browser/trunk/src/semitwist/util/deferAssert.d
Though no one else seems to have posted (at least not yet), I know some other people have also come up with assert/unittest tools. And I'm sure I saw a D port of JUnit/NUnit somewhere ("DUnit", I think). May need to just search the archives.
Feb 19 2010








"Nick Sabalausky" <a a.a>