from robotide.context import IS_WINDOWS, IS_MAC from robotide.contrib.testrunner import TestRunner from robotide.contrib.testrunner import runprofiles from robotide.publish.messages import RideTestSelectedForRunningChanged from robotide.pluginapi import Plugin, ActionInfo from robotide.widgets import Label, ImageProvider from robotide.robotapi import LOG_LEVELS from robotide.utils import robottime, is_unicode, PY2 from sys import getfilesystemencoding from robotide.lib.robot.utils.encodingsniffer import (get_console_encoding, get_system_encoding) CONSOLE_ENCODING = get_console_encoding() if PY2 and IS_WINDOWS: SYSTEM_ENCODING = 'mbcs' else: SYSTEM_ENCODING = get_system_encoding() OUTPUT_ENCODING = getfilesystemencoding() encoding = {'CONSOLE': CONSOLE_ENCODING, 'SYSTEM': SYSTEM_ENCODING, 'OUTPUT': OUTPUT_ENCODING} # print("DEBUG: TestRunnerPlugin encoding=%s" % encoding) ID_RUN = wx.NewId() ID_RUNDEBUG = wx.NewId() ID_STOP = wx.NewId() ID_PAUSE = wx.NewId() ID_CONTINUE = wx.NewId() ID_STEP_NEXT = wx.NewId() ID_STEP_OVER = wx.NewId() ID_SHOW_REPORT = wx.NewId()
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import inspect import os from robotide.contrib.testrunner import TestRunnerAgent try: from robotide.lib.robot.utils import encoding except ImportError: from robotide.lib.robot.utils.encodingsniffer import get_system_encoding encoding.SYSTEM_ENCODING = get_system_encoding() class CommandBuilder: def __init__(self): self._command_prefix = '' self._suite_source = '' self._listener = None self._arg_file = '' def set_prefix(self, prefix): self._command_prefix = prefix def set_listener(self, port, pause_on_failure=False): if port: