Closed ant-zuev closed 1 year ago
def write_ensure_prefix(self, prefix: str, extra: str = "", **kwargs) -> None:
start_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
-- ?
def write_ensure_prefix(self, prefix: str, extra: str = "", **kwargs) -> None: start_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
-- ?
Added milliseconds to the start time this way.
Added "--start-time" option to print tests start time info. Don't print by default. Redefined write_fspath_result method to print info without verbose mode too.
Add test start time info to custom TerminalReporter. Now we always use custom reporter regardless of the 'install_terminals' option. write_ensure_prefix method has been redefined to print start time and nodeid without line break.
It looks like: