From 9141645940b1d72f83446377c55b12dc93cc9550 Mon Sep 17 00:00:00 2001 From: Peter Salomonsen Date: Sat, 26 Oct 2024 13:38:15 +0200 Subject: [PATCH] Update testing-apps.md correct spin.toml for `component.my-component.tool.spin-test` `dir` should be `workdir` Signed-off-by: Peter Salomonsen --- content/spin/v2/testing-apps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/spin/v2/testing-apps.md b/content/spin/v2/testing-apps.md index 2cb861165..0aeb72ca4 100644 --- a/content/spin/v2/testing-apps.md +++ b/content/spin/v2/testing-apps.md @@ -210,7 +210,7 @@ Then we edit the `my-app` application's manifest (the `spin.toml` file) by addin [component.my-component.tool.spin-test] source = "tests/target/wasm32-wasi/release/tests.wasm" build = "cargo component build --release" -dir = "tests" +workdir = "tests" ``` ## Updating the App to Pass the Tests @@ -326,4 +326,4 @@ test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini `spin-test` is still in the early days of development, so you’re likely to run into things that don’t quite work yet. We’d love to hear about your experience so we can prioritize which features and bugs to fix first. We’re excited about the future potential of using WebAssembly components for testing, and we look forward to hearing about your experiences as we continue the development of `spin-test`. -You might also like to learn about `spin doctor` which is a command-line tool that detects and helps fix issues preventing applications from building and running. For more information see the [troubleshooting applications page](./troubleshooting-application-dev.md). \ No newline at end of file +You might also like to learn about `spin doctor` which is a command-line tool that detects and helps fix issues preventing applications from building and running. For more information see the [troubleshooting applications page](./troubleshooting-application-dev.md).