Using a test reporter is the intended method to get this information in CI.
Ending with error codes has seemed to create more problems than it solves – particularly since some simulators eat the error codes and do not return them outside of their environment.