diff --git a/cases/test_code/exceptions/no_method.sspec b/cases/test_code/exceptions/raise_before_shoes_app.sspec similarity index 80% rename from cases/test_code/exceptions/no_method.sspec rename to cases/test_code/exceptions/raise_before_shoes_app.sspec index a17a5a4..36d9a5f 100644 --- a/cases/test_code/exceptions/no_method.sspec +++ b/cases/test_code/exceptions/raise_before_shoes_app.sspec @@ -1,7 +1,7 @@ --- ----------- app code +raise_exception_before_shoes_app_body Shoes.app do - no_such_method end ----------- test code assert true, "Even if the test code is fine, this spec should fail because the app fails." diff --git a/cases/test_code/exceptions/raise_in_shoes_app.sspec b/cases/test_code/exceptions/raise_in_shoes_app.sspec new file mode 100644 index 0000000..7018718 --- /dev/null +++ b/cases/test_code/exceptions/raise_in_shoes_app.sspec @@ -0,0 +1,7 @@ +--- +----------- app code +Shoes.app do + raise_exception_inside_shoes_app_body +end +----------- test code +assert true, "Even if the test code is fine, this spec should fail because the app fails." diff --git a/cases/test_code/exceptions/raise_in_test_code.sspec b/cases/test_code/exceptions/raise_in_test_code.sspec new file mode 100644 index 0000000..02bb4fd --- /dev/null +++ b/cases/test_code/exceptions/raise_in_test_code.sspec @@ -0,0 +1,6 @@ +--- +----------- app code +Shoes.app do +end +----------- test code +raise_exception_in_test_code diff --git a/results/niente/expected/results-local.yaml b/results/niente/expected/results-local.yaml index 2d372c4..9a87ba7 100644 --- a/results/niente/expected/results-local.yaml +++ b/results/niente/expected/results-local.yaml @@ -24,4 +24,6 @@ pass: :pass skip: :skip test_code/exceptions: - no_method: :error + raise_before_shoes_app: :error + raise_in_shoes_app: :error + raise_in_test_code: :error diff --git a/results/scarpe-wasm/expected/results-wasm.yaml b/results/scarpe-wasm/expected/results-wasm.yaml index 46278fb..8f3ab28 100644 --- a/results/scarpe-wasm/expected/results-wasm.yaml +++ b/results/scarpe-wasm/expected/results-wasm.yaml @@ -24,4 +24,6 @@ pass: :error skip: :error test_code/exceptions: - no_method: :error + raise_before_shoes_app: :error + raise_in_shoes_app: :error + raise_in_test_code: :error diff --git a/results/scarpe-webview/expected/results-local-calzini.yaml b/results/scarpe-webview/expected/results-local-calzini.yaml index 87390f8..88b1eb5 100644 --- a/results/scarpe-webview/expected/results-local-calzini.yaml +++ b/results/scarpe-webview/expected/results-local-calzini.yaml @@ -24,4 +24,6 @@ pass: :pass skip: :skip test_code/exceptions: - no_method: :error + raise_before_shoes_app: :error + raise_in_shoes_app: :error + raise_in_test_code: :error diff --git a/results/scarpe-webview/expected/results-local-tiranti.yaml b/results/scarpe-webview/expected/results-local-tiranti.yaml index 6c06a6f..f41ddc6 100644 --- a/results/scarpe-webview/expected/results-local-tiranti.yaml +++ b/results/scarpe-webview/expected/results-local-tiranti.yaml @@ -24,4 +24,6 @@ pass: :pass skip: :skip test_code/exceptions: - no_method: :error + raise_before_shoes_app: :error + raise_in_shoes_app: :error + raise_in_test_code: :error