heavy-duty / znap

Performance-first Rust Framework to build APIs compatible with the Solana Actions Spec.
Apache License 2.0
60 stars 1 forks source link

Run tests suite for the whole workspace #71

Closed danmt closed 2 months ago

danmt commented 2 months ago

In the process of improving the CLI, the test command suffered a regression. The approach of dividing the collections and running them in separate ports broke the concept of the workspace test suite. The test command should start all collections services, run the entire test suite and then stop all services.

The problem with this approach is that default addresses/ports combinations will end up in conflicts. To workaround it we'll store some additional metadata about each collection in the Znap.toml file, this way we can set up those values to static ones and use the same ones in our tests to avoid flakiness.