Closed jlabedo closed 8 hours ago
We even always clear the runtime cache before running integration tests
Yeah, I might have missed the last part of the documentation https://docs.ecotone.tech/modelling/testing-support/testing-messaging#caching-configuration
But It does not seems very DX friendly, especially when you write your tests first
Ecotone version(s) affected: 1.231.4
Description
When using
EcotoneLite::bootstrapFlowTesting
, the cache is always used when usingServiceConfiguration::withNamespaces()
, making tests very hard to debug :)How to reproduce
In this test, the namespace attributes will be automatically cached:
When using "classes to resolve" parameter, attributes are correctly updated:
Possible Solution
This seems to come from this piece of code: https://github.com/ecotoneframework/ecotone-dev/blob/13ec84e586a1a606358af47e5b80cb49eb7ec570/packages/Ecotone/src/Lite/EcotoneLite.php#L378-L383