Project

General

Profile

Evolution #4557

Nouveaux tests unitaires pour Creole-2.4

Added by Joël Cuissinat over 8 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Distribution:
EOLE 2.4

Description

On se rend vite compte qu'on peut mettre tous les tests existants à la poubelle !

Pour le plaisir, en voila un extrait :

$ py.test test_gen_config.py
test_gen_config.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
=========================== 40 error in 1.32 seconds ===========================


Related issues

Related to python-pyeole - Anomalie #3870: Fournir des tests unitaires utilisable à la compilation d’un paquet Classée sans suite 07/25/2012
Related to creole - Evolution #3049: Session de travail sur CreoleLint Classée sans suite 03/09/2012

Associated revisions

Revision 8bf82212 (diff)
Added by Joël Cuissinat over 8 years ago

Suppression des anciens tests unitaires 2.3

Ref #4557 @10m

Revision a86de3b9 (diff)
Added by Joël Cuissinat over 8 years ago

Améliorations sur CreoleService et ajout de tests
unitaires inspirés de test_fonctionseoleng.py

Ref #4557 @10m
Ref #3870 @5m

Revision 24351acc (diff)
Added by Emmanuel GARETTE over 8 years ago

ajout de la variable self.window à ConfigTiramisu pour les test (ref #4557)

Revision 2a120365 (diff)
Added by Emmanuel GARETTE over 8 years ago

correction des test gen_config, voir pour les autres tests ... (ref #4557)

Revision 80afe89e (diff)
Added by Emmanuel GARETTE over 8 years ago

ajout de status pour CreoleService (ref #4557)

Revision 37b3d052 (diff)
Added by Emmanuel GARETTE over 7 years ago

les tests test_gen_config.py n'ont plus lieu d'être, gen_config n'existant plus (ref #4557)

Revision dde17707 (diff)
Added by moyooo over 7 years ago

tru to fix see #4557

Revision 783b8308 (diff)
Added by Joël Cuissinat over 7 years ago

  • tests/test_creoleservice.py : "CreoleService networking stop" n'est PLUS interdit

Ref #4557 @15m

Revision 431f5cf1 (diff)
Added by Johan Cwiklinski over 2 years ago

Reset user; fixes #4557

History

#1 Updated by Joël Cuissinat over 8 years ago

  • Status changed from Nouveau to Résolu
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100

Ça fait 3 fichiers de tests unitaires valides ou presque :)

../usr/share/creole/tests/test_creolerun.py ......
../usr/share/creole/tests/test_creoleservice.py F..
../usr/share/creole/tests/test_gen_config.py ................

#2 Updated by Joël Cuissinat about 8 years ago

  • Status changed from Résolu to Réouvert
  • % Done changed from 100 to 80

Un des fichiers de test ne passe plus :

============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- pytest-1.3.4
test path 1: /usr/share/creole/tests/

../usr/share/creole/tests/test_creolerun.py ......
../usr/share/creole/tests/test_creoleservice.py ...
../usr/share/creole/tests/test_gen_config.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

#3 Updated by Joël Cuissinat about 8 years ago

  • Target version changed from Eole 2.4-dev-2 to Eole 2.4-dev-3

#4 Updated by Joël Cuissinat over 7 years ago

  • Target version changed from Eole 2.4-dev-3 to Eole 2.4-alpha

#5 Updated by Joël Cuissinat over 7 years ago

  • Target version deleted (Eole 2.4-alpha)

#6 Updated by Emmanuel GARETTE over 7 years ago

  • Assigned To changed from Emmanuel GARETTE to Daniel Dehennin

test_creoleservice.py ne fonctionne plus.

#7 Updated by Daniel Dehennin over 7 years ago

================================================= test session starts =================================================
platform linux2 -- Python 2.7.3 -- pytest-1.3.4
test path 1: /usr/share/creole/tests/test_creoleservice.py

../usr/share/creole/tests/test_creoleservice.py ...

============================================== 3 passed in 0.55 seconds ===============================================

#8 Updated by Emmanuel GARETTE over 7 years ago

  • Status changed from Réouvert to Résolu
  • Assigned To changed from Daniel Dehennin to Emmanuel GARETTE
  • % Done changed from 80 to 100

#9 Updated by Joël Cuissinat over 7 years ago

  • Status changed from Résolu to Fermé
  • Target version set to Eole 2.4-beta3
  • Start date deleted (12/07/2012)

ça ira pour aujourd'hui :)

Also available in: Atom PDF