Skip to content

Commit 080b873

Browse files
Tests: Skip redundant spectest parsing/lexing tests by default
1 parent 2c126af commit 080b873

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Tests/WATTests/LexerTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class LexerTests: XCTestCase {
7575
}
7676

7777
func testLexSpectest() throws {
78+
// NOTE: We do the same check as a part of the EncoderTests, so it's
79+
// usually redundant and time-wasting to run this test every time.
80+
// Keeping it here just for local unit testing purposes.
81+
try XCTSkipIf(
82+
ProcessInfo.processInfo.environment["WASMKIT_LEXER_SPECTEST"] != "1"
83+
)
7884
var failureCount = 0
7985
for filePath in Spectest.wastFiles() {
8086
print("Lexing \(filePath.path)...")

Tests/WATTests/ParserTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ class ParserTests: XCTestCase {
178178
}
179179

180180
func testParseSpectest() throws {
181+
// NOTE: We do the same check as a part of the EncoderTests, so it's
182+
// usually redundant and time-wasting to run this test every time.
183+
// Keeping it here just for local unit testing purposes.
184+
try XCTSkipIf(
185+
ProcessInfo.processInfo.environment["WASMKIT_PARSER_SPECTEST"] != "1"
186+
)
181187
var failureCount = 0
182188
var totalCount = 0
183189
for filePath in Spectest.wastFiles(include: []) {

0 commit comments

Comments
 (0)