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.
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.