diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2009-11-25 11:36:53 +0100 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2009-11-25 11:36:53 +0100 |
commit | 5b08273c446a97ed25efb7783c531261bebd91b5 (patch) | |
tree | d794b1212e539440ed08b5a69a0793594383a5c2 | |
parent | d70e6d49959fcef0a447ecb57e8d31c68a99e912 (diff) | |
download | pylint-git-5b08273c446a97ed25efb7783c531261bebd91b5.tar.gz |
tag smoke test
-rw-r--r-- | test/smoketest.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/smoketest.py b/test/smoketest.py index fd43d338c..0278cf95b 100644 --- a/test/smoketest.py +++ b/test/smoketest.py @@ -15,14 +15,14 @@ import sys from os.path import join, dirname, abspath from cStringIO import StringIO -from logilab.common.testlib import TestCase, unittest_main +from logilab.common.testlib import TestCase, unittest_main, tag from pylint.lint import Run from pylint.reporters.text import * from pylint.reporters.html import HTMLReporter HERE = abspath(dirname(__file__)) - + class RunTC(TestCase): def _runtest(self, args, reporter=None, code=28): @@ -40,51 +40,63 @@ class RunTC(TestCase): sys.stderr = sys.__stderr__ sys.stdout = sys.__stdout__ + @tag('smoke') def test0(self): """make pylint checking itself""" self._runtest(['pylint.__pkginfo__'], reporter=TextReporter(StringIO()), code=0) + @tag('smoke') def test1(self): """make pylint checking itself""" self._runtest(['--include-ids=y', 'pylint.lint'], reporter=TextReporter(StringIO())) + @tag('smoke') def test2(self): """make pylint checking itself""" self._runtest(['pylint.lint'], reporter=ParseableTextReporter(StringIO())) + @tag('smoke') def test3(self): """make pylint checking itself""" self._runtest(['pylint.lint'], reporter=HTMLReporter(StringIO())) + @tag('smoke') def test4(self): """make pylint checking itself""" self._runtest(['pylint.lint'], reporter=ColorizedTextReporter(StringIO())) + @tag('smoke') def test5(self): """make pylint checking itself""" self._runtest(['pylint.lint'], reporter=VSTextReporter(StringIO())) + @tag('smoke') def test_no_ext_file(self): self._runtest([join(HERE, 'input', 'noext')], code=0) + @tag('smoke') def test_w0704_ignored(self): self._runtest([join(HERE, 'input', 'ignore_except_pass_by_default.py')], code=0) + @tag('smoke', 'help', 'config') def test_generate_config_option(self): """make pylint checking itself""" self._runtest(['--generate-rcfile'], reporter=HTMLReporter(StringIO()), code=0) + @tag('smoke', 'help') def test_help_message_option(self): """make pylint checking itself""" self._runtest(['--help-msg', 'W0101'], reporter=HTMLReporter(StringIO()), code=0) + @tag('smoke', 'help') def test_error_help_message_option(self): self._runtest(['--help-msg', 'WX101'], reporter=HTMLReporter(StringIO()), code=0) + @tag('smoke', 'usage') def test_error_missing_arguments(self): self._runtest([], reporter=HTMLReporter(StringIO()), code=32) |