Project

General

Profile

Segnalazione #787

Pulizia output test suite

Added by Enrico Zini about 5 years ago. Updated almost 5 years ago.

Status:
Chiuso
Priority:
Normale
Assignee:
Target version:
Start date:
04/02/2019
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Al momento la test suite stampa log warning e altri messaggi in stderr.

Servirebbe trovare modi puliti per silenziare/gestire questi output, e avere come log della test suite solo l'output di nose2/unittest

Associated revisions

Revision ebb7d7a1
Added by Enrico Zini almost 5 years ago

Sync with master. refs: #787

Revision 10920062
Added by Enrico Zini almost 5 years ago

Silence the test suite. Refs: #787

History

#1

Updated by Elena Grandi almost 5 years ago

Lanciando i test con nose2-3 --log-level ERROR (come da commit 433658eb presente nel branch t787) si impostano i log mostrati su console / nei log ad un livello tale da non mostrare messaggi spuri.

Nei casi in cui vogliamo gestire tali log, potrebbe essere utile usare assertLogs nei test, in modo da avere controllo su cosa vogliamo che sia stato loggato.

#2

Updated by Enrico Zini almost 5 years ago

  • Status changed from Nuovo to Chiuso
  • Assignee set to Enrico Zini

Grazie, mergiato, chiudo

Also available in: Atom PDF