nose-selecttests

Software screenshot:
nose-selecttests
Dettagli del software:
Versione: 0.2
Data di caricamento: 20 Feb 15
Sviluppatore: Domen Kozar
Licenza: Libero
Popolarità: 65

Rating: 1.0/5 (Total Votes: 1)

naso-selecttests è un naso plugin per specificare whitelist di parole chiave per le prove da eseguire dal naso.
Uso

Esempi di utilizzo del plugin sul pacchetto plugin stesso:
Eseguire tutti i test:
$ Nosetests -v
test_configure_complex (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_empty_string (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_none (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_simple (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_is_selected_case_insensitive (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_is_selected_negative (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_is_selected_simple (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_is_selected_unselected (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_is_selected_unselected_override (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_is_selected_wildcard (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_options (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_prepareTestCase_exclude (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_prepareTestCase_select (noseselecttests.tests.NoseSelectPluginTest) ... ok
-------------------------------------------------- --------------------
Ran 13 test in 0.008s
OK
Solo eseguire test con parola chiave di configurazione:
$ Nosetests -v -t configure
test_configure_complex (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_empty_string (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_none (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_simple (noseselecttests.tests.NoseSelectPluginTest) ... ok
-------------------------------------------------- --------------------
Ran 4 test in 0.006s
OK
Case insensitive:
$ Nosetests -v -t CONFIGURE
test_configure_complex (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_empty_string (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_none (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_simple (noseselecttests.tests.NoseSelectPluginTest) ... ok
-------------------------------------------------- --------------------
Ran 4 test in 0.006s
OK
Solo eseguire test con parola chiave configure ma esclude test con complesse parole chiave:
$ Nosetests -v -t configure -e complesso
test_configure_empty_string (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_none (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_simple (noseselecttests.tests.NoseSelectPluginTest) ... ok
-------------------------------------------------- --------------------
Ran 3 prove in 0.006s
OK
Per appena escludere alcuni test, utilizzare -e che è fornito dal naso sé:
$ Nosetests -v -e is_selected
test_configure_complex (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_empty_string (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_none (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_configure_simple (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_options (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_prepareTestCase_exclude (noseselecttests.tests.NoseSelectPluginTest) ... ok
test_prepareTestCase_select (noseselecttests.tests.NoseSelectPluginTest) ... ok
-------------------------------------------------- --------------------
Ran 7 prove in 0.005s
OK

Requisiti :

  • Python
  • naso

Programmi simili

python-noseenv
python-noseenv

20 Feb 15

nose-kleenex
nose-kleenex

15 Apr 15

lava-ci
lava-ci

11 May 15

Altri software di sviluppo Domen Kozar

Commenti a nose-selecttests

I commenti non trovato
Aggiungi commento
Accendere le immagini!