Files
openide/python/helpers/pycharm/_jb_nosetest_runner.py
Ilya.Kazakevich 9614f73c67 CWM-2243: Close suites on the Python side.
Python runners aren't aware of suites: they report ``fully.qualified.test.names``.

These names are splitted to the suites on the Python side, and just before process ends we close all of them.

GitOrigin-RevId: 4e1ad5b308cd393ac8877e1f6e1f616b254a130c
2023-02-01 17:43:40 +00:00

22 lines
680 B
Python

# coding=utf-8
import re
import nose
import sys
from _jb_runner_tools import jb_start_tests, jb_patch_separator, jb_doc_args, \
JB_DISABLE_BUFFERING, jb_finish_tests
from teamcity.nose_report import TeamcityReport
if __name__ == '__main__':
path, targets, additional_args = jb_start_tests()
sys.argv += [path] if path else jb_patch_separator(targets, fs_glue="/", python_glue=".", fs_to_python_glue=".py:")
sys.argv += additional_args
if JB_DISABLE_BUFFERING and "-s" not in sys.argv:
sys.argv += ["-s"]
jb_doc_args("Nosetest", sys.argv)
try:
sys.exit(nose.main(addplugins=[TeamcityReport()]))
finally:
jb_finish_tests()