Bullanga / dns-hijack

Dns per al projecte Inite
GNU General Public License v3.0
1 stars 0 forks source link

Que cadascú faci els tests que li toquen. #17

Open ferrerax opened 4 years ago

ferrerax commented 4 years ago

Coses bàsiques i importants del framework:

static const MunitSuite suite = {
  "/my-tests", /* nom de la suite */
  tests, /* array de tests */
  NULL, /* suites imbrincades. Si es vol saber més mirar docu */
  1, /* iterations */
  MUNIT_SUITE_OPTION_NONE /* No serveix de res, esta per versions futures*/
};

Carpeta tests/test.c es on es faran els tests. ALLÀ HI HA UN EXEMPLE DE TOT AIXÒ

Doncs, per cada test_case hi ha d'haver un array de tests i una suite

xXIty commented 4 years ago

Els farem tots al mateix fitxer de tests?

xXIty commented 4 years ago

Com veus afegir aixo? image

xXIty commented 4 years ago

Sembla que la sequencia

make clean
make test

no funciona! Hi ha algun motiu?