File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff 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) ... " )
Original file line number Diff line number Diff 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: [ ] ) {
You can’t perform that action at this time.
0 commit comments