Skip to content

Commit 629943a

Browse files
committed
Run interpreter on previous tests
1 parent 623176d commit 629943a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test_main.py

+15
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,18 @@ def test_interpreter(name: str, output: str):
115115
def test_interpreter_return():
116116
result = runner.invoke(app, ["run", "tests/interpreter/return.txt"])
117117
assert result.exit_code == 1
118+
119+
120+
@pytest.mark.parametrize(
121+
"name",
122+
[
123+
"parser/input_1.txt",
124+
"parser/input_2.txt",
125+
"ast/input_1.txt",
126+
"ast/input_2.txt",
127+
"ast/input_3.txt",
128+
],
129+
)
130+
def test_all_on_previous_tests(name: str): # run interpreter on parser tests and AST tests
131+
result = runner.invoke(app, ["run", f"tests/{name}"])
132+
assert result.exit_code == 0

0 commit comments

Comments
 (0)