digitalmars.D.announce - Unittest Walker
- Thomas Kuehne (25/25) Dec 08 2006 -----BEGIN PGP SIGNED MESSAGE-----
- Lutger (11/36) Dec 08 2006 Good idea, I'll try it whenever I get around to install linux. What
- Thomas Kuehne (18/28) Dec 08 2006 -----BEGIN PGP SIGNED MESSAGE-----
- Sean Kelly (4/29) Dec 08 2006 Could this be accomplished by modifying moduleinit.d in Phobos? It
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you are interested in executing all your unittests and don't want to stop after the first failed one you might be interested in the Unittest Walker. sample output: limitation: works only on Linux how to use: 1) download http://svn.dsource.org/projects/flectioned/downloads/flectioned.zip 2) gcc -c elf.c 3) dmd -unittest flectioned.d unittest_walker.d elf.o <your sources> -oftest 4) ./test Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFeWhxLK5blCcjpWoRAtSvAJ4vqNbxLVyRqRcc37/MmbbjAUaUiwCfS/Ic mTnC03JIOnAFUoZrAZphMGs= =e7id -----END PGP SIGNATURE-----
Dec 08 2006
Thomas Kuehne wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you are interested in executing all your unittests and don't want to stop after the first failed one you might be interested in the Unittest Walker. sample output: limitation: works only on Linux how to use: 1) download http://svn.dsource.org/projects/flectioned/downloads/flectioned.zip 2) gcc -c elf.c 3) dmd -unittest flectioned.d unittest_walker.d elf.o <your sources> -oftest 4) ./test ThomasGood idea, I'll try it whenever I get around to install linux. What about something like this: unittest("testing some stuff") { ... } or perhaps this is better: /// testing some stuff unittest {...} testing some_module: "testing some stuff" ... SUCCESS Is this possible / difficult?
Dec 08 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lutger schrieb am 2006-12-08: <snip>Good idea, I'll try it whenever I get around to install linux. What about something like this: unittest("testing some stuff") { ... } or perhaps this is better: /// testing some stuff unittest {...} testing some_module: "testing some stuff" ... SUCCESS Is this possible / difficult?This would require compiler support. You can however use someting like this: Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFeXI+LK5blCcjpWoRAmW6AJ9vKcM49KgqtLjFGjDBykKFP21Y4wCfeF/7 tPLqVHkAt4pZMhM0skiZz+Q= =Nyci -----END PGP SIGNATURE-----
Dec 08 2006
Thomas Kuehne wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lutger schrieb am 2006-12-08: <snip>Could this be accomplished by modifying moduleinit.d in Phobos? It already contains a debug printf to output the module being tested. SeanGood idea, I'll try it whenever I get around to install linux. What about something like this: unittest("testing some stuff") { ... } or perhaps this is better: /// testing some stuff unittest {...} testing some_module: "testing some stuff" ... SUCCESS Is this possible / difficult?This would require compiler support.
Dec 08 2006