Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links


Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites





xUnit Family

Dal capitolo free "The xUnit Family of Unit Test Frameworks" di questo libro:

P. Hamill, "Unit Test Frameworks. Tools for High-Quality Software Development", O'Reilly (2004)

che sta per uscire proprio in questi giorni, scopro un'intera famiglia, oltre a NUnit e JUnit:

e sembra che ce n'è siano ancora altri ("This is just a sample of the many xUnit-derived test tools").

Per il vostro divertimento, qui sotto il codice di MinUnit:

/* file: minunit.h */
#define mu_assert(message, test) do{ if (!(test)) return message; } while (0)
#define mu_run_test(test) do{ char *message = test(); tests_run++; if (message) returnmessage; } while (0)
extern int tests_run;

Print | posted on sabato 20 novembre 2004 19:19 | Filed Under [ Varie ]

Powered by:
Powered By Subtext Powered By ASP.NET