forked from DamnWidget/anaconda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PythonConsole.YAML-tmLanguage
76 lines (63 loc) · 1.39 KB
/
PythonConsole.YAML-tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# [PackageDev] target_format: plist, ext: hidden-tmLanguage
name: PythonTestOutput
scopeName: tests.python
uuid: 461be01e-d282-4798-b5e1-c718d682ab5e
patterns:
- comment: error details
begin: '^[=-]+$'
end: "\\[Finished in [\\d+\\.]+s\\]"
name: raw
patterns:
- comment: test fail
name: test.fail
begin: '^\=+$'
end: '^\-+$'
match: '.*FAIL: (.*)'
- comment: test error
name: test.error
begin: '^\=+$'
end: '^\-+$'
match: '.*ERROR: (.*)'
- comment: file in traceback
begin: 'File '
end: ','
match: '"(...*?)"'
captures:
'1': {name: test.filename}
- comment: all test pass
name: test.pass
begin: Ran \d+ tests
match: OK
- comment: tests broken
name: test.fail
begin: Ran \d+ tests
match: FAILED (.*)
- comment: inline failures
name: verbosity2
patterns:
- comment: test error
name: test.error
match: 'ERROR$'
- comment: test fail
name: test.fail
match: 'FAIL$'
- comment: test pass
name: test.pass
match: 'ok$'
- comment: dots line
begin: ^(?:(E)|(F)|(s)|\.)
end: \n
beginCaptures:
'1': {'name': test.error}
'2': {'name': test.fail}
'3': {'name': test.skip}
patterns:
- comment: test dot error
match: E
name: test.error
- comment: test dot fail
match: F
name: test.fail
- comment: test dot skip
match: s
name: test.skip