diff --git a/Tests/WATTests/LexerTests.swift b/Tests/WATTests/LexerTests.swift index 8bd1ed0b..623a963d 100644 --- a/Tests/WATTests/LexerTests.swift +++ b/Tests/WATTests/LexerTests.swift @@ -75,6 +75,12 @@ class LexerTests: XCTestCase { } func testLexSpectest() throws { + // NOTE: We do the same check as a part of the EncoderTests, so it's + // usually redundant and time-wasting to run this test every time. + // Keeping it here just for local unit testing purposes. + try XCTSkipIf( + ProcessInfo.processInfo.environment["WASMKIT_LEXER_SPECTEST"] != "1" + ) var failureCount = 0 for filePath in Spectest.wastFiles() { print("Lexing \(filePath.path)...") diff --git a/Tests/WATTests/ParserTests.swift b/Tests/WATTests/ParserTests.swift index c4d4e660..dd3d638c 100644 --- a/Tests/WATTests/ParserTests.swift +++ b/Tests/WATTests/ParserTests.swift @@ -178,6 +178,12 @@ class ParserTests: XCTestCase { } func testParseSpectest() throws { + // NOTE: We do the same check as a part of the EncoderTests, so it's + // usually redundant and time-wasting to run this test every time. + // Keeping it here just for local unit testing purposes. + try XCTSkipIf( + ProcessInfo.processInfo.environment["WASMKIT_PARSER_SPECTEST"] != "1" + ) var failureCount = 0 var totalCount = 0 for filePath in Spectest.wastFiles(include: []) {