8000 Allow skipping the self parse test by settinging an environment variable · swiftlang/swift-syntax@264dbd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 264dbd5

Browse files
committed
Allow skipping the self parse test by settinging an environment variable
This allows me to run all other tests in a few seconds.
1 parent a7e3a15 commit 264dbd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/SwiftParserTest/ParserTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import SwiftParser
44

55
public class ParserTests: XCTestCase {
66
func testSelfParse() throws {
7+
// Allow skipping the self parse test in local development environments
8+
// because it takes very long compared to all the other tests.
9+
try XCTSkipIf(ProcessInfo.processInfo.environment["SKIP_SELF_PARSE"] == "1")
710
let currentDir = URL(fileURLWithPath: #file)
811
.deletingLastPathComponent()
912
.deletingLastPathComponent()

0 commit comments

Comments
 (0)
0