Test
To test a provider, we can run it in a local wasmCloud environment, interacting with a real host and real components. To set up the environment:
- Run a local development environment with
wash up
- Build the provider with
wash build
- Using a
wadm.yaml
application manifest that includes the path to your provider,wash app deploy wadm.yaml
to deploy your application- Alternatively, start the provider with
wash start provider ./path/to/provider.par.gz
- Start a component that interacts with the provider with
wash start component
, then link the two together
- Alternatively, start the provider with
- Invoke the component or provider directly to test
To see an example of this, refer to the create section for capability providers.