unify the way to output testing infos