File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/testrunner/Sources/TestRunner Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ # 1.1.1
2
+
3
+ - Fixed an issue causing help functions to be marked as test cases
4
+ - Made the output when writting a compile error shorter
5
+
1
6
# 1.1.0
2
7
3
8
- The test runner will run one test at a time, this is to be able to give a better error message when a test fails.
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class TestRunner{
33
33
let bodyCheck = node. body
34
34
if bodyCheck != nil {
35
35
let name : String = String ( describing: node. identifier)
36
+ guard name. hasPrefix ( " test " ) else { return SyntaxVisitorContinueKind . visitChildren }
36
37
var body : String = String ( describing: bodyCheck!) . trimmingCharacters ( in: charactersToRemove)
37
38
body = String ( body [ body. index ( after: body. startIndex) ..< body. index ( before: body. endIndex) ] ) . trimmingCharacters ( in: charactersToRemove)
38
39
var bodyList = body. components ( separatedBy: " \n " )
@@ -247,7 +248,7 @@ class TestRunner{
247
248
let message = something. components ( separatedBy: " \n " ) [ 1 ... ]
248
249
var start = 0
249
250
for (rowIdx, row) in message. enumerated ( ) {
250
- if row. contains ( " CompileError.swift: " ) || row. contains ( " \( camelCase ( slug: slug) ) Tests.swift: " ) {
251
+ if row. contains ( " CompileError.swift: " ) || row. contains ( " \( camelCase ( slug: slug) ) Tests.swift: " ) || row . contains ( " \( camelCase ( slug : slug ) ) .swift: " ) {
251
252
start = rowIdx + 1
252
253
break
253
254
}
You can’t perform that action at this time.
0 commit comments