Well. It is the officially supported way until now. But we’re aware of different problems with the test rule. We will replace it in the future.
I recommend test-containers or one of the other libraries. But note that these are just community projects.