Skip to content

Instantly share code, notes, and snippets.

@Makman2
Created September 1, 2015 23:32
Show Gist options
  • Save Makman2/9960f8dbb2f6ac55bf26 to your computer and use it in GitHub Desktop.
Save Makman2/9960f8dbb2f6ac55bf26 to your computer and use it in GitHub Desktop.
mak@localhost:~/dev/coala (sils/printcol) +1 ~0 -0 $ ./run_tests.py
1/81 | ApplyPatchActionTest
2/81 | BearRunningTest
3/81 | BearTest
4/81 | BuildDbusServiceTest
5/81 | BuildManPageTest
6/81 | ClangASTPrintBearTest
7/81 | ClangCloneDetectionBearTest
8/81 | ClangCountingConditionsTest
9/81 | ClangCountVectorCreatorTest
10/81 | CliParsingTest
11/81 | CloneDetectionRoutinesTest
12/81 | coalaTest
test_find_issues (__main__.coalaTest) ... /bin/sh: warning: setlocale: LC_ALL: cannot change locale (unknown_language): No such file or directory
ok
test_find_no_issues (__main__.coalaTest) ... ok
test_nonexistent (__main__.coalaTest) ... FAIL
======================================================================
FAIL: test_nonexistent (__main__.coalaTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mak/dev/coala/coalib/tests/coalaTest.py", line 49, in test_nonexistent
".*\\[WARNING\\].*The requested coafile '.*' does not exist.\n"
AssertionError: Regex didn't match: ".*\\[WARNING\\].*The requested coafile '.*' does not exist.\n.*\\[WARNING\\].*The requested section 'test' is not.*\n" not found in ''
----------------------------------------------------------------------
Ran 3 tests in 3.688s
FAILED (failures=1)
[WARNING][01:21:01] The requested coafile '/home/mak/dev/coala/nonex' does not exist.
[WARNING][01:21:01] The requested section 'test' is not existent. Thus it cannot be executed.
######################################################################
13/81 | CollectorsTest
14/81 | ConfigurationGatheringTest
15/81 | ConfParserTest
16/81 | ConfWriterTest
17/81 | ConsoleInteractionTest
test_finalize_backup_fail (__main__.ConsoleInteractionTest) ... ok
test_print_bears (__main__.ConsoleInteractionTest) ... ok
test_print_bears_empty (__main__.ConsoleInteractionTest) ... ok
test_print_bears_no_needed_settings (__main__.ConsoleInteractionTest) ... ok
test_print_bears_no_optional_settings (__main__.ConsoleInteractionTest) ... ok
test_print_bears_no_sections (__main__.ConsoleInteractionTest) ... ok
test_print_bears_no_settings (__main__.ConsoleInteractionTest) ... ok
test_print_result (__main__.ConsoleInteractionTest) ... ok
test_print_results_empty (__main__.ConsoleInteractionTest) ... ok
test_print_results_for_file (__main__.ConsoleInteractionTest) ... FAIL
test_print_results_missing_file (__main__.ConsoleInteractionTest) ... ok
test_print_results_missing_line (__main__.ConsoleInteractionTest) ... FAIL
test_print_results_project_wide (__main__.ConsoleInteractionTest) ... FAIL
test_print_results_raising (__main__.ConsoleInteractionTest) ... ok
test_print_results_sorting (__main__.ConsoleInteractionTest) ... FAIL
test_require_settings (__main__.ConsoleInteractionTest) ... ok
test_show_bears (__main__.ConsoleInteractionTest) ... ok
test_static_functions (__main__.ConsoleInteractionTest) ... ok
test_bad_format (__main__.PrintFormattedResultsTest) ... ok
test_empty_list (__main__.PrintFormattedResultsTest) ... ok
test_good_format (__main__.PrintFormattedResultsTest) ... ok
======================================================================
FAIL: test_print_results_for_file (__main__.ConsoleInteractionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mak/dev/coala/coalib/tests/output/ConsoleInteractionTest.py", line 303, in test_print_results_for_file
stdout.getvalue())
AssertionError: '\n\nproj/white\n| 1| 1| test line\n| [97 chars]nd\n' != ''
-
-
- proj/white
- | 1| 1| test line
- | 2| 2| line 2
- | | | [NORMAL] SpaceConsistencyBear:
- | | | Trailing whitespace found
======================================================================
FAIL: test_print_results_missing_line (__main__.ConsoleInteractionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mak/dev/coala/coalib/tests/output/ConsoleInteractionTest.py", line 394, in test_print_results_missing_line
stdout.getvalue())
AssertionError: "\n\nfile\n| | | The line belonging[156 chars]sg\n" != ''
-
-
- file
- | | | The line belonging to the following result cannot be printed because it refers to a line that doesn't seem to exist in the given file.
- | | | [NORMAL] t:
- | | | msg
======================================================================
FAIL: test_print_results_project_wide (__main__.ConsoleInteractionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mak/dev/coala/coalib/tests/output/ConsoleInteractionTest.py", line 284, in test_print_results_project_wide
stdout.getvalue())
AssertionError: '\n\nProject wide:\n| | | [NORMAL] origin:\n| | | message\n' != ''
-
-
- Project wide:
- | | | [NORMAL] origin:
- | | | message
======================================================================
FAIL: test_print_results_sorting (__main__.ConsoleInteractionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mak/dev/coala/coalib/tests/output/ConsoleInteractionTest.py", line 362, in test_print_results_sorting
stdout.getvalue())
AssertionError: '\n\nproj/white\n| 1| 1| test line\n| [240 chars]nd\n' != ''
-
-
- proj/white
- | 1| 1| test line
- | 2| 2| line 2
- | | | [NORMAL] SpaceConsistencyBear:
- | | | Trailing whitespace found
- | 3| 3| line 3
- | 4| 4| line 4
- | 5| 5| line 5
- | | | [NORMAL] SpaceConsistencyBear:
- | | | Trailing whitespace found
----------------------------------------------------------------------
Ran 21 tests in 0.109s
FAILED (failures=4)
[WARNING][01:20:58] One of the results can not be printed since it is not a valid derivative of the coala result class.
| | | [NORMAL] origin:
| | | msg
| | | [NORMAL] origin:
| | | msg
| | | The following options are applicable to this result:
| | | 0: Do nothing.
| | | 1: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. Executing section ...
| | | [NORMAL] origin:
| | | msg
| | | The following options are applicable to this result:
| | | 0: Do nothing.
| | | 1: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. | | | Please enter a valid number.
| | | 0: Do nothing.
| | | 1: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. | | | Please enter a valid number.
| | | 0: Do nothing.
| | | 1: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. | | | Please enter a value for the parameter 'param' (No description given.): | | | [NORMAL] origin:
| | | msg
| | | The following options are applicable to this result:
| | | 0: Do nothing.
| | | 1: Open a temporary clone of the file in an editor.
| | | 2: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. | | | Please enter a value for the parameter 'editor' (The editor to open the file with.): [ERROR][01:20:58] Failed to execute the action OpenEditorAction.
| | | The following options are applicable to this result:
| | | 0: Do nothing.
| | | 1: Open a temporary clone of the file in an editor.
| | | 2: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. | | | [NORMAL] origin:
| | | msg
| | | The following options are applicable to this result:
| | | 0: Do nothing.
| | | 1: Open a temporary clone of the file in an editor.
| | | 2: Apply the patch automatically.
| | | Please enter the number of the action you want to execute. [ERROR][01:20:58] Failed to execute the action OpenEditorAction.
| | | The following options are applicable to this result:
| | | 0: Do nothing.
| | | 1: Open a temporary clone of the file in an editor.
| | | 2: Apply the patch automatically.
| | | Please enter the number of the action you want to execute.
proj/white
| 1| 1| test line
| 2| 2| line 2
| | | [NORMAL] SpaceConsistencyBear:
| | | Trailing whitespace found
file
| | | The line belonging to the following result cannot be printed because it refers to a line that doesn't seem to exist in the given file.
| | | [NORMAL] t:
| | | msg
Project wide:
| | | [NORMAL] origin:
| | | message
proj/white
| 1| 1| test line
| 2| 2| line 2
| | | [NORMAL] SpaceConsistencyBear:
| | | Trailing whitespace found
| 3| 3| line 3
| 4| 4| line 4
| 5| 5| line 5
| | | [NORMAL] SpaceConsistencyBear:
| | | Trailing whitespace found
[WARNING][01:20:58] One of the given settings (0) is not properly described.
Please enter a value for the setting "setting" (help text) needed by SomeBear: Please enter a value for the setting "setting" (help text) needed by SomeBear and AnotherBear: Please enter a value for the setting "setting" (help text) needed by SomeBear, AnotherBear and YetAnotherBear: ######################################################################
18/81 | ContextManagersTest
19/81 | CountVectorTest
20/81 | DbusAppTest
21/81 | DbusDocumentTest
22/81 | DbusServerTest
23/81 | DbusTest
24/81 | DecoratorsTest
25/81 | DependenciesTest
26/81 | DictUtilitiesTest
27/81 | DiffTest
28/81 | DocumentationCommentTest
29/81 | EnumTest
30/81 | EscapeTest
31/81 | EspeakPrinterTest
32/81 | ExceptionsTest
33/81 | FunctionMetadataTest
34/81 | GlobalBearTest
35/81 | GlobbingTest
36/81 | HiddenResultTest
37/81 | HTMLWriterTest
38/81 | i18nTest
39/81 | ImportersTest
40/81 | InteractionsTest
41/81 | JSONEncoderTest
42/81 | KeywordBearTest
43/81 | LanguageDefinitionTest
44/81 | LanguageToolBearTest
45/81 | LineCountBearTest
46/81 | LineDiffTest
47/81 | LineLengthBearTest
48/81 | LineParserTest
49/81 | ListLogPrinterTest
50/81 | LocalBearTest
51/81 | LogMessageTest
52/81 | LogPrinterTest
53/81 | LogPrinterThreadTest
54/81 | NestedSearchInBetweenTest
55/81 | OpenEditorActionTest
56/81 | PatchResultTest
57/81 | PositionIsEscapedTest
58/81 | PrintDebugMessageActionTest
59/81 | ProcessingTest
60/81 | PyLintBearTest
61/81 | RESULT_SEVERITYTest
62/81 | ResultActionTest
63/81 | ResultTest
64/81 | SearchForTest
65/81 | SearchInBetweenTest
66/81 | SectionCreatableTest
67/81 | SectionFillingTest
68/81 | SectionTest
69/81 | SettingTest
70/81 | ShellTest
71/81 | SourcePositionTest
72/81 | SpaceConsistencyBearTest
73/81 | SpacingHelperTest
74/81 | SplitTest
75/81 | StringConverterTest
76/81 | StringPrinterTest
77/81 | StringProcessingTest
78/81 | UnescapedSearchForTest
79/81 | UnescapedSearchInBetweenTest
80/81 | UnescapedSplitTest
81/81 | UnescapeTest
Tests finished: failures in 2 of 81 test modules, skipped 0 test modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment