You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We would like to use our own implementation for IO testing, as AJTS does not meet our requirements here.
AJTS does replace the System.* streams automatically, overwriting our own implementation.
Describe the solution you'd like
Do not auto-install the IOTesting replacements. Provide an annotation @EnableIOFramework (or similar) to allow own implementations.
Describe alternatives you've considered
Provide an annotaion @DisableIOFramework. But something like replacing System.* should not happen automatically.
Ares-Version you are using
1.5.3
The text was updated successfully, but these errors were encountered:
One possible solution is to simply uninstall the IOTester by using IOTester.uninstallCurrent(). This could e.g. be done in the setup for the custom solution for each test case. If the IOTester is uninstalled, whitelisted code can set IO to anything you want.
We want the automatic replacement of System.* to avoid blocking code and spam in the build logs / huge logs, and it never came in our way of testing and proved to be more beneficial. This is different of course if you want to use something else, in which case the uninstallation should solve the problem.
Given the late change and #144 this fix probably is of no interest to you, but I had some time and was wondering how a solution could look like. So now there is a way to use custom IO testing code in Ares. API is experimental, so in case anyone would prefer a certain behavior of the current one, this would become subject of a new issue.
Is your feature request related to a problem? Please describe.
We would like to use our own implementation for IO testing, as AJTS does not meet our requirements here.
AJTS does replace the System.* streams automatically, overwriting our own implementation.
Describe the solution you'd like
Do not auto-install the IOTesting replacements. Provide an annotation
@EnableIOFramework
(or similar) to allow own implementations.Describe alternatives you've considered
Provide an annotaion
@DisableIOFramework
. But something like replacing System.* should not happen automatically.Ares-Version you are using
1.5.3
The text was updated successfully, but these errors were encountered: