Skip to content

Commit 1fe68b4

Browse files
committed
test(isc): guard artifact-dependent specs for the not-shipped state
1 parent 80b8638 commit 1fe68b4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎spec/interscript/isc/parg_artifact_spec.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
skip "maps checkout not present" if maps.empty?
1313
skip "parsanol lacks PARG (needs >= 1.3.61)" unless Interscript::Isc::Parser.respond_to?(:artifact)
14+
skip "artifact not shipped (parsanol#5 — compiler mistranslates; DSL is the engine)" unless File.exist?(Interscript::Isc::Parser::ARTIFACT_PATH)
1415

1516
it "parses every corpus map identically via artifact and DSL" do
1617
failures = []

‎spec/interscript/isc/parser_spec.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565

6666
it "parses through the shipped .parg artifact when parsanol has PARG" do
6767
skip "parsanol lacks PARG (needs >= 1.3.61)" unless Interscript::Isc::Parser.respond_to?(:artifact)
68+
skip "artifact not shipped (parsanol#5 — compiler mistranslates; DSL is the engine)" unless File.exist?(Interscript::Isc::Parser::ARTIFACT_PATH)
6869

6970
tree = described_class.parse(src)
7071
doc = Interscript::Isc::DocumentBuilder.build(tree, filename: "test.isc")
@@ -74,6 +75,7 @@
7475

7576
it "produces byte-identical trees via artifact and DSL paths" do
7677
skip "parsanol lacks PARG (needs >= 1.3.61)" unless Interscript::Isc::Parser.respond_to?(:artifact)
78+
skip "artifact not shipped (parsanol#5 — compiler mistranslates; DSL is the engine)" unless File.exist?(Interscript::Isc::Parser::ARTIFACT_PATH)
7779

7880
artifact_tree = described_class.parse_with_artifact(src)
7981
dsl_tree = described_class.parse_with_dsl(src)

0 commit comments

Comments
 (0)