Skip to content

Instantly share code, notes, and snippets.

@Makman2
Created March 7, 2016 21:07
Show Gist options
  • Save Makman2/eb68dde025995ad270b4 to your computer and use it in GitHub Desktop.
Save Makman2/eb68dde025995ad270b4 to your computer and use it in GitHub Desktop.
mak@localhost:~/dev/coala (master) +1 ~0 -0 $ py.test
Test session starts (platform: linux, Python 3.4.3, pytest 2.8.7, pytest-sugar 0.5.1)
rootdir: /home/mak/dev/coala, inifile: setup.cfg
plugins: timeout-1.0.0, sugar-0.5.1, xdist-1.14, doc-0.0.1, env-0.6.0, cov-2.2.1
docs/index.rst ⚫ 0%
docs/General_Dev_Info/git_tutorial_1.rst ⚫ 0% ▏
docs/Getting_Involved/Codestyle.rst ⚫ 1% ▏
docs/Getting_Involved/MAC_Hints.rst ⚫ 1% ▏
docs/Getting_Involved/Newcomers.rst ⚫ 1% ▏
docs/Getting_Involved/README.rst ⚫ 1% β–Ž
docs/Getting_Involved/Review.rst ⚫ 1% β–Ž
docs/Getting_Involved/Testing.rst ⚫ 2% β–Ž
docs/Getting_Involved/Writing_Documentation.rst ⚫ 2% β–Ž
docs/Getting_Involved/Writing_Good_Commits.rst ⚫ 2% β–Ž
docs/Getting_Involved/Writing_Tests.rst ⚫ 2% β–Ž
docs/Users/Exit_Codes.rst ⚫ 2% β–Ž
docs/Users/External_APIs.rst ⚫ 3% ▍
docs/Users/Git_Hooks.rst ⚫ 3% ▍
docs/Users/Glob_Patterns.rst βœ“ 3% ▍
docs/Users/Install.rst ⚫ 3% ▍
docs/Users/coafile.rst ⚫ 4% ▍
docs/Users/Tutorials/Git_Help.rst ⚫ 4% ▍
docs/Users/Tutorials/Linter_Bears.rst ⚫ 4% ▍
docs/Users/Tutorials/Self_Correcting_Bears.rst ⚫ 4% β–Œ
docs/Users/Tutorials/Tutorial.rst ⚫ 4% β–Œ
docs/Users/Tutorials/Writing_Bears.rst ⚫ 5% β–Œ
tests/MakeTempTest.py βœ“ 5% β–Œ
tests/coalaCITest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 6% β–‹
tests/coalaDbusTest.py βœ“ 6% β–‹
tests/coalaDeleteOrigTest.py βœ“βœ“ 7% β–Š
tests/coalaFormatTest.py βœ“ 7% β–Š
tests/coalaJSONTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 8% β–‰
tests/coalaTest.py βœ“βœ“βœ“ 9% β–‰
tests/bearlib/abstractions/LintTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 11% β–ˆβ–
tests/bearlib/abstractions/SectionCreatableTest.py βœ“βœ“βœ“ 11% β–ˆβ–Ž
tests/bearlib/languages/LanguageDefinitionTest.py βœ“βœ“βœ“ 12% β–ˆβ–Ž
tests/bearlib/languages/documentation/DocstyleDefinitionTest.py βœ“βœ“βœ“ 12% β–ˆβ–Ž
tests/bearlib/languages/documentation/DocumentationCommentTest.py βœ“ 13% β–ˆβ–
tests/bearlib/languages/documentation/DocumentationExtractionTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 14% β–ˆβ–Œ
tests/bearlib/spacing/SpacingHelperTest.py βœ“βœ“βœ“βœ“βœ“ 15% β–ˆβ–Œ
tests/bears/BearTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 17% β–ˆβ–Š
tests/bears/GlobalBearTest.py βœ“βœ“ 17% β–ˆβ–Š
tests/bears/LocalBearTest.py βœ“βœ“ 18% β–ˆβ–Š
tests/collecting/CollectorsTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 22% β–ˆβ–ˆβ–Ž
tests/collecting/DependenciesTest.py βœ“βœ“βœ“ 22% β–ˆβ–ˆβ–Ž
tests/collecting/ImportersTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 24% β–ˆβ–ˆβ–Œ
tests/misc/BuildManPageTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 26% β–ˆβ–ˆβ–‹
tests/misc/ContextManagersTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 27% β–ˆβ–ˆβ–Š
tests/misc/DecoratorsTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 31% β–ˆβ–ˆβ–ˆβ–
tests/misc/DictUtilitiesTest.py βœ“βœ“ 31% β–ˆβ–ˆβ–ˆβ–
tests/misc/EnumTest.py βœ“βœ“ 31% β–ˆβ–ˆβ–ˆβ–Ž
tests/misc/ExceptionsTest.py βœ“ 32% β–ˆβ–ˆβ–ˆβ–Ž
tests/misc/ShellTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 34% β–ˆβ–ˆβ–ˆβ–
tests/misc/StringConverterTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 36% β–ˆβ–ˆβ–ˆβ–‹
tests/output/ConfWriterTest.py βœ“βœ“ 36% β–ˆβ–ˆβ–ˆβ–‹
tests/output/ConsoleInteractionTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 42% β–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/output/InteractionsTest.py βœ“ 42% β–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/output/JSONEncoderTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 44% β–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/output/TaggingTest.py βœ“βœ“βœ“βœ“ 45% β–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/output/dbus/BuildDbusServiceTest.py βœ“ 45% β–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/output/dbus/DbusAppTest.py βœ“ 46% β–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/output/dbus/DbusDocumentTest.py βœ“βœ“βœ“ 46% β–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/output/dbus/DbusServerTest.py βœ“βœ“βœ“βœ“βœ“ 47% β–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/output/dbus/DbusTest.py 47% β–ˆβ–ˆβ–ˆβ–ˆβ–Š
―――――――――――――――――――――――――――――――――――――――――― DbusTest.test_dbus ―――――――――――――――――――――――――――――――――――――――――――
self = <tests.output.dbus.DbusTest.DbusTest testMethod=test_dbus>
def test_dbus(self):
self.document_object_path = self.remote_object.CreateDocument(
self.testcode_c_path,
dbus_interface="org.coala_analyzer.v1")
self.assertRegex(str(self.document_object_path),
r"^/org/coala_analyzer/v1/test/\d+/documents/\d+$")
self.document_object = self.bus.get_object(
"org.coala_analyzer.v1.test",
self.document_object_path)
config_file = self.document_object.SetConfigFile(
"dummy_config",
dbus_interface="org.coala_analyzer.v1")
self.assertEqual(config_file, "dummy_config")
config_file = self.document_object.GetConfigFile(
dbus_interface="org.coala_analyzer.v1")
self.assertEqual(config_file, "dummy_config")
config_file = self.document_object.FindConfigFile(
dbus_interface="org.coala_analyzer.v1")
self.assertEqual(config_file, self.config_path)
analysis = self.document_object.Analyze(
dbus_interface="org.coala_analyzer.v1")
self.maxDiff = None
self.assertEqual(analysis,
(1,
[],
[('default',
True,
[{'debug_msg': '',
'file': '',
> 'id': analysis[2][0][2][0]['id'],
'line_nr': "",
'message': 'test msg',
'origin': 'LocalTestBear',
'severity': 'NORMAL'},
{'debug_msg': '',
'file': self.testcode_c_path,
'id': analysis[2][0][2][1]['id'],
'line_nr': "",
'message': 'test msg',
'origin': 'GlobalTestBear',
'severity': 'NORMAL'}])]))
E IndexError: list index out of range
tests/output/dbus/DbusTest.py:107: IndexError
tests/output/dbus/DbusTest.py β¨― 47% β–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/output/printers/EspeakPrinterTest.py βœ“ 48% β–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/output/printers/HTMLWriterTest.py βœ“βœ“βœ“βœ“ 48% β–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/output/printers/ListLogPrinterTest.py βœ“ 49% β–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/output/printers/LogPrinterTest.py βœ“βœ“βœ“βœ“ 49% β–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/output/printers/StringPrinterTest.py βœ“βœ“βœ“βœ“ 50% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
tests/parsing/CliParsingTest.py βœ“ 51% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/parsing/ConfParserTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 52% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/parsing/GlobbingTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 58% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/parsing/LineParserTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 59% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/parsing/StringProcessing/EscapeTest.py βœ“βœ“βœ“βœ“ 60% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
tests/parsing/StringProcessing/InBetweenMatchTest.py βœ“βœ“βœ“ 61% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/parsing/StringProcessing/LimitTest.py βœ“βœ“ 61% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/parsing/StringProcessing/MatchTest.py βœ“βœ“ 62% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/parsing/StringProcessing/NestedSearchInBetweenTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 63% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/parsing/StringProcessing/PositionIsEscapedTest.py βœ“βœ“ 63% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/parsing/StringProcessing/SearchForTest.py βœ“βœ“βœ“βœ“βœ“ 64% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/parsing/StringProcessing/SearchInBetweenTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 66% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/parsing/StringProcessing/SplitTest.py βœ“βœ“βœ“βœ“βœ“ 67% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/parsing/StringProcessing/TrimEmptyMatchesTest.py βœ“βœ“ 67% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/parsing/StringProcessing/UnescapeTest.py βœ“βœ“ 67% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/parsing/StringProcessing/UnescapedSearchForTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 69% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/parsing/StringProcessing/UnescapedSearchInBetweenTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 70% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
tests/parsing/StringProcessing/UnescapedSplitTest.py βœ“βœ“βœ“βœ“βœ“ 71% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/parsing/StringProcessing/UnescapedStripTest.py βœ“βœ“βœ“ 72% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/processes/BearRunningTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 73% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/processes/LogPrinterThreadTest.py βœ“ 73% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/processes/ProcessingTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 77% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/processes/communication/LogMessageTest.py βœ“βœ“βœ“βœ“ 78% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/results/DiffTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 80% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
tests/results/HiddenResultTest.py βœ“ 80% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/results/LineDiffTest.py βœ“βœ“ 81% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/results/RESULT_SEVERITYTest.py βœ“ 81% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/results/ResultFilterTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 82% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/results/ResultTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 84% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/results/SourcePositionTest.py βœ“βœ“βœ“ 85% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/results/SourceRangeTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 87% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/results/TextPositionTest.py βœ“βœ“ 87% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š
tests/results/TextRangeTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 89% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/results/result_actions/ApplyPatchActionTest.py βœ“βœ“βœ“βœ“βœ“βœ“ 90% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
tests/results/result_actions/OpenEditorActionTest.py βœ“βœ“βœ“ 91% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
tests/results/result_actions/PrintDebugMessageActionTest.py βœ“βœ“ 91% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/results/result_actions/ResultActionTest.py βœ“ 92% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/results/result_actions/ShowPatchActionTest.py βœ“βœ“βœ“ 92% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž
tests/settings/ConfigurationGatheringTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 94% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/settings/DocumentationCommentTest.py βœ“βœ“ 95% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ
tests/settings/FunctionMetadataTest.py βœ“βœ“βœ“βœ“ 96% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/settings/SectionFillingTest.py βœ“βœ“ 96% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹
tests/settings/SectionTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 99% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰
tests/settings/SettingTest.py βœ“βœ“βœ“βœ“βœ“βœ“βœ“ 100% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
======================================== short test summary info ========================================
SKIP [21] /usr/lib/python3.4/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
Results (13.09s):
463 passed
1 failed
- /home/mak/dev/coala/tests/output/dbus/DbusTest.py:107: IndexError: list index out of range
21 skipped
mak@localhost:~/dev/coala (master) +1 ~0 -0 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment