예제 #1
0
 public ProcessDumpUtility(IProcessHelper processHelper, IFileHelper fileHelper, IHangDumperFactory hangDumperFactory, ICrashDumperFactory crashDumperFactory)
 {
     this.processHelper      = processHelper;
     this.fileHelper         = fileHelper;
     this.hangDumperFactory  = hangDumperFactory;
     this.crashDumperFactory = crashDumperFactory;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultTestHostManager"/> class.
 /// </summary>
 /// <param name="processHelper">Process helper instance.</param>
 /// <param name="fileHelper">File helper instance.</param>
 /// <param name="environment">Instance of platform environment.</param>
 /// <param name="dotnetHostHelper">Instance of dotnet host helper.</param>
 internal DefaultTestHostManager(IProcessHelper processHelper, IFileHelper fileHelper, IEnvironment environment, IDotnetHostHelper dotnetHostHelper)
 {
     this.processHelper    = processHelper;
     this.fileHelper       = fileHelper;
     this.environment      = environment;
     this.dotnetHostHelper = dotnetHostHelper;
 }
예제 #3
0
 public TestRuntimeManager(JsonDataSerializer dataSerializer, IProcessHelper processHelper, JSProcess process)
 {
     this.dataSerializer       = dataSerializer;
     this.jsProcess            = process;
     this.versionCheckComplete = new ManualResetEventSlim();
     this.executionComplete    = new ManualResetEventSlim();
 }
예제 #4
0
 public CommonTargets(ILoggerFactory loggerFactory, Options options, IProcessHelper processHelper, IConsoleService consoleService)
 {
     this.logger         = loggerFactory.CreateLogger(nameof(CommonTargets));
     this.options        = options;
     this.processHelper  = processHelper;
     this.consoleService = consoleService;
 }
예제 #5
0
 protected TestEngine(
     TestRuntimeProviderManager testHostProviderManager,
     IProcessHelper processHelper)
 {
     this.testHostProviderManager = testHostProviderManager;
     this.processHelper           = processHelper;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotnetDataCollectionLauncher"/> class.
 /// </summary>
 /// <param name="processHelper">
 /// The process helper.
 /// </param>
 internal DotnetDataCollectionLauncher(IProcessHelper processHelper, IFileHelper fileHelper, IDotnetHostHelper dotnetHostHelper)
 {
     this.processHelper        = processHelper;
     this.DataCollectorProcess = null;
     this.fileHelper           = fileHelper;
     this.dotnetHostHelper     = dotnetHostHelper;
 }
예제 #7
0
 public ProcessDumpUtility(IProcessHelper processHelper, IFileHelper fileHelper, IEnvironment environment, INativeMethodsHelper nativeMethodsHelper)
 {
     this.processHelper       = processHelper;
     this.fileHelper          = fileHelper;
     this.environment         = environment;
     this.nativeMethodsHelper = nativeMethodsHelper;
 }
예제 #8
0
 internal DefaultEngineInvoker(ITestRequestHandler requestHandler,
                               IDataCollectionTestCaseEventSender dataCollectionTestCaseEventSender, IProcessHelper processHelper)
 {
     this.processHelper  = processHelper;
     this.requestHandler = requestHandler;
     this.dataCollectionTestCaseEventSender = dataCollectionTestCaseEventSender;
 }
 public PaymentService(IConfiguration configuration, IGenericRepository repository, ICommandText query, IProcessHelper processHelper)
 {
     _configuration = configuration;
     _repository    = repository;
     _query         = query;
     _processHelper = processHelper;
 }
예제 #10
0
 public StarterkitTargets(ILoggerFactory loggerFactory, Options options, IProcessHelper processHelper, IKubernetesHelper kubernetesHelper)
 {
     this.options          = options;
     this.processHelper    = processHelper;
     this.kubernetesHelper = kubernetesHelper;
     this.logger           = loggerFactory.CreateLogger(this.GetType().Name);
 }
예제 #11
0
        public UpdateViewModel(
            ICompressedFileManager compressedFileManager,
            IDirectoryManager directoryManager,
            IFileManager fileManager,
            IProcessHelper processHelper,
            IVersionHelper versionHelper,
            IMessagePublisher messagePublisher)
        {
            this.compressedFileManager = compressedFileManager;
            this.directoryManager      = directoryManager;
            this.fileManager           = fileManager;
            this.processHelper         = processHelper;
            this.messagePublisher      = messagePublisher;

            // Setup update information
            this.latestVersion = versionHelper.LatestVersion;

            var latestReleaseInfo = versionHelper.GetLatestReleaseInfo();

            if (latestReleaseInfo == null)
            {
                return;
            }

            this.downloadUrl = latestReleaseInfo.DownloadUrl;
            this.Changes     = latestReleaseInfo.Changes;

            this.web.DownloadProgressChanged += WebDownloadProgressChanged;
            this.web.DownloadFileCompleted   += WebDownloadFileCompleted;

            this.ButtonsEnabled = true;
        }
예제 #12
0
        public static void ExitCallBack(
            IProcessHelper processHelper,
            object process,
            StringBuilder testHostProcessStdError,
            Action <HostProviderEventArgs> onHostExited)
        {
            var exitCode = 0;
            var testHostProcessStdErrorStr = testHostProcessStdError.ToString();

            processHelper.TryGetExitCode(process, out exitCode);

            if (exitCode != 0)
            {
                EqtTrace.Error("Test host exited with error: '{0}'", testHostProcessStdErrorStr);
            }

            int procId = -1;

            try
            {
                procId = (process as Process).Id;
            }
            catch (InvalidOperationException)
            {
            }

            onHostExited(new HostProviderEventArgs(testHostProcessStdErrorStr, exitCode, procId));
        }
예제 #13
0
 public TestableDotnetTestHostManager(
     IProcessHelper processHelper,
     IFileHelper fileHelper,
     IDotnetHostHelper dotnetTestHostHelper)
     : base(processHelper, fileHelper, dotnetTestHostHelper)
 {
 }
예제 #14
0
        public static void ExitCallBack(
            IProcessHelper processHelper,
            object process,
            StringBuilder testHostProcessStdError,
            Action <HostProviderEventArgs> onHostExited)
        {
            var exitCode = 0;
            var testHostProcessStdErrorStr = testHostProcessStdError.ToString();

            processHelper.TryGetExitCode(process, out exitCode);

            int procId = -1;

            try
            {
                procId = (process as Process).Id;
            }
            catch (InvalidOperationException)
            {
            }

            if (exitCode != 0)
            {
                EqtTrace.Error("TestHostManagerCallbacks.ExitCallBack: Testhost processId: {0} exited with exitcode: {1} error: '{2}'", procId, exitCode, testHostProcessStdErrorStr);
            }
            else
            {
                EqtTrace.Info("TestHostManagerCallbacks.ExitCallBack: Testhost processId: {0} exited with exitcode: 0 error: '{1}'", procId, testHostProcessStdErrorStr);
            }

            onHostExited(new HostProviderEventArgs(testHostProcessStdErrorStr, exitCode, procId));
        }
예제 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotnetDataCollectionLauncher"/> class.
 /// </summary>
 /// <param name="processHelper">
 /// The process helper.
 /// </param>
 /// <param name="fileHelper">
 /// The file Helper.
 /// </param>
 /// <param name="dotnetHostHelper">
 /// The dotnet Host Helper.
 /// </param>
 /// <param name="messageLogger">
 /// The message Logger.
 /// </param>
 internal DotnetDataCollectionLauncher(IProcessHelper processHelper, IFileHelper fileHelper, IDotnetHostHelper dotnetHostHelper, IMessageLogger messageLogger) : base(processHelper, messageLogger)
 {
     this.processHelper          = processHelper;
     this.fileHelper             = fileHelper;
     this.DataCollectorProcessId = -1;
     this.dotnetHostHelper       = dotnetHostHelper;
 }
예제 #16
0
 public TestRunner(IProcessHelper process,
                   ITestCaseStreamReaderFactory testCaseStreamReaderFactory,
                   IFileProbe fileProbe,
                   IBatchCompilerService batchCompilerService,
                   ITestHarnessBuilder testHarnessBuilder,
                   ITestContextBuilder htmlTestFileCreator,
                   IChutzpahTestSettingsService testSettingsService,
                   ITransformProcessor transformProcessor,
                   IChutzpahWebServerFactory webServerFactory,
                   IUrlBuilder urlBuilder,
                   IList <ITestExecutionProvider> testExecutionProviders)
 {
     this.urlBuilder = urlBuilder;
     this.process    = process;
     this.testCaseStreamReaderFactory = testCaseStreamReaderFactory;
     this.fileProbe            = fileProbe;
     this.batchCompilerService = batchCompilerService;
     this.testHarnessBuilder   = testHarnessBuilder;
     stopWatch                   = new Stopwatch();
     testContextBuilder          = htmlTestFileCreator;
     this.testSettingsService    = testSettingsService;
     this.transformProcessor     = transformProcessor;
     this.webServerFactory       = webServerFactory;
     this.testExecutionProviders = testExecutionProviders;
 }
예제 #17
0
        /// <summary>
        /// The get data collector launcher.
        /// </summary>
        /// <returns>
        /// The <see cref="IDataCollectionLauncher"/>.
        /// </returns>
        internal static IDataCollectionLauncher GetDataCollectorLauncher(IProcessHelper processHelper, string settingsXml)
        {
            // Always launch datacollector.exe if code coverage is configured.
            if (!string.IsNullOrWhiteSpace(settingsXml))
            {
                var dataCollectionRunSettings = XmlRunSettingsUtilities.GetDataCollectionRunSettings(settingsXml);
                foreach (var dataCollectorSettings in dataCollectionRunSettings.DataCollectorSettingsList)
                {
                    if (string.Equals(dataCollectorSettings.FriendlyName, "event Log", StringComparison.OrdinalIgnoreCase) || string.Equals(dataCollectorSettings.Uri?.ToString(), @"datacollector://Microsoft/EventLog/2.0", StringComparison.OrdinalIgnoreCase))
                    {
                        return(new DefaultDataCollectionLauncher());
                    }
                }
            }

            // Target Framework of DataCollection process and Runner should be same.
            var currentProcessPath = processHelper.GetCurrentProcessFileName();

            if (currentProcessPath.EndsWith("dotnet", StringComparison.OrdinalIgnoreCase) ||
                currentProcessPath.EndsWith("dotnet.exe", StringComparison.OrdinalIgnoreCase))
            {
                return(new DotnetDataCollectionLauncher());
            }

            return(new DefaultDataCollectionLauncher());
        }
예제 #18
0
        /// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initilaization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override void Initialize()
        {
            Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", ToString()));
            base.Initialize();

            dte = (DTE2)GetService(typeof(DTE));
            if (dte == null)
            {
                //if dte is null then we throw a excpetion
                //this is a fatal error
                throw new ArgumentNullException("dte");
            }

            testRunner = TestRunner.Create();

            processHelper = new ProcessHelper();
            Logger        = new Logger(this);
            Settings      = GetDialogPage(typeof(ChutzpahSettings)) as ChutzpahSettings;

            statusBar      = GetService(typeof(SVsStatusbar)) as IVsStatusbar;
            runnerCallback = new ParallelRunnerCallbackAdapter(new VisualStudioRunnerCallback(dte, statusBar));


            // Add our command handlers for menu (commands must exist in the .vsct file)
            var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            if (null != mcs)
            {
                // Command - Run JS Tests
                var runJsTestsCmd    = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidRunJSTests);
                var runJsTestMenuCmd = new OleMenuCommand(RunJSTestCmdCallback, runJsTestsCmd);
                runJsTestMenuCmd.BeforeQueryStatus += RunJSTestsCmdQueryStatus;
                mcs.AddCommand(runJsTestMenuCmd);

                // Command - Run JS tests in browser
                var runJsTestsInBrowserCmd    = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidRunInBrowser);
                var runJsTestInBrowserMenuCmd = new OleMenuCommand(RunJSTestInBrowserCmdCallback, runJsTestsInBrowserCmd);
                runJsTestInBrowserMenuCmd.BeforeQueryStatus += RunJSTestsInBrowserCmdQueryStatus;
                mcs.AddCommand(runJsTestInBrowserMenuCmd);

                // Command - Run Code Coverage
                var runJsTestCodeCoverageCmd     = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidRunCodeCoverage);
                var runJsTestCodeCoverageMenuCmd = new OleMenuCommand(RunCodeCoverageCmdCallback, runJsTestCodeCoverageCmd);
                runJsTestCodeCoverageMenuCmd.BeforeQueryStatus += RunCodeCoverageCmdQueryStatus;
                mcs.AddCommand(runJsTestCodeCoverageMenuCmd);


                var runJsTestDebuggerCmd     = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidDebugTests);
                var runJsTestDebuggerMenuCmd = new OleMenuCommand(RunDebuggerCmdCallback, runJsTestDebuggerCmd);
                runJsTestDebuggerMenuCmd.BeforeQueryStatus += RunDebuggerCmdQueryStatus;
                mcs.AddCommand(runJsTestDebuggerMenuCmd);
            }


            this.solutionListener = new SolutionEventsListener(this);
            this.solutionListener.SolutionUnloaded       += OnSolutionUnloaded;
            this.solutionListener.SolutionProjectChanged += OnSolutionProjectChanged;
            this.solutionListener.StartListeningForChanges();
        }
예제 #19
0
 /// <summary>
 /// For Unit testing only
 /// </summary>
 internal PortArgumentExecutor(CommandLineOptions options, ITestRequestManager testRequestManager, Func <int, IProcessHelper, IDesignModeClient> designModeInitializer, IProcessHelper processHelper)
 {
     Contract.Requires(options != null);
     this.commandLineOptions    = options;
     this.testRequestManager    = testRequestManager;
     this.designModeInitializer = designModeInitializer;
     this.processHelper         = processHelper;
 }
예제 #20
0
 /// <inheritdoc/>
 public void Initialize(IMessageLogger logger, string runsettingsXml)
 {
     this.messageLogger         = logger;
     this.processHelper         = new ProcessHelper();
     this.fileHelper            = new FileHelper();
     this.dotnetHostHelper      = new DotnetHostHelper();
     this.hostExitedEventRaised = false;
 }
예제 #21
0
 /// <summary>
 /// BasicIconLogicService
 /// </summary>
 public BasicIconLogicService(IInstanceResolverHelper instanceResolverHelper, IPluginService pluginService, IPluginBasicConfigHelper pluginBasicConfigHelper, IIconConfigHelper iconConfigHelper, IProcessHelper processHelper)
 {
     InstanceResolverHelper  = instanceResolverHelper;
     PluginService           = pluginService;
     PluginBasicConfigHelper = pluginBasicConfigHelper;
     IconConfigHelper        = iconConfigHelper;
     ProcessHelper           = processHelper;
 }
예제 #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProxyOperationManager"/> class.
 /// </summary>
 /// <param name="requestSender">Request Sender instance.</param>
 /// <param name="testHostManager">Test host manager instance.</param>
 /// <param name="clientConnectionTimeout">Client Connection Timeout.</param>
 protected ProxyOperationManager(ITestRequestSender requestSender, ITestRuntimeProvider testHostManager, int clientConnectionTimeout)
 {
     this.RequestSender     = requestSender;
     this.connectionTimeout = clientConnectionTimeout;
     this.testHostManager   = testHostManager;
     this.processHelper     = new ProcessHelper();
     this.initialized       = false;
 }
예제 #23
0
 public CommunicationLayerIntegrationTests()
 {
     this.mockTestMessageEventHandler = new Mock <ObjectModel.Client.ITestMessageEventHandler>();
     this.dataCollectorSettings       = string.Format("<DataCollector friendlyName=\"CustomDataCollector\" uri=\"my://custom/datacollector\" assemblyQualifiedName=\"{0}\" codebase=\"{1}\" />", typeof(CustomDataCollector).AssemblyQualifiedName, typeof(CustomDataCollector).GetTypeInfo().Assembly.Location);
     this.runSettings            = string.Format(this.defaultRunSettings, this.dataCollectorSettings);
     this.processHelper          = new ProcessHelper();
     this.dataCollectionLauncher = DataCollectionLauncherFactory.GetDataCollectorLauncher(this.processHelper, this.runSettings);
 }
예제 #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProxyDataCollectionManager"/> class.
 /// </summary>
 /// <param name="settingsXml">
 /// Runsettings that contains the datacollector related configuration.
 /// </param>
 /// <param name="dataCollectionRequestSender">
 /// Handles communication with datacollector process.
 /// </param>
 /// <param name="processHelper">
 /// The process Helper.
 /// </param>
 /// <param name="dataCollectionLauncher">
 /// Launches datacollector process.
 /// </param>
 internal ProxyDataCollectionManager(string settingsXml, IDataCollectionRequestSender dataCollectionRequestSender, IProcessHelper processHelper, IDataCollectionLauncher dataCollectionLauncher)
 {
     this.settingsXml = settingsXml;
     this.dataCollectionRequestSender = dataCollectionRequestSender;
     this.dataCollectionLauncher      = dataCollectionLauncher;
     this.processHelper     = processHelper;
     this.connectionTimeout = 5 * 1000;
 }
 public TestableDotnetTestHostManager(
     IProcessHelper processHelper,
     IFileHelper fileHelper,
     IDotnetHostHelper dotnetTestHostHelper,
     IEnvironment environment)
     : base(processHelper, fileHelper, dotnetTestHostHelper, environment)
 {
 }
예제 #26
0
 public TestableDotnetTestHostManager(
     bool checkRequired,
     IProcessHelper processHelper,
     IFileHelper fileHelper,
     IEnvironment environment) : base(processHelper, fileHelper, new DotnetHostHelper(fileHelper, environment))
 {
     this.isVersionCheckRequired = checkRequired;
 }
예제 #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotnetTestHostManager"/> class.
 /// </summary>
 /// <param name="testHostLauncher">A test host launcher instance.</param>
 /// <param name="processHelper">Process helper instance.</param>
 /// <param name="fileHelper">File helper instance.</param>
 internal DotnetTestHostManager(
     ITestHostLauncher testHostLauncher,
     IProcessHelper processHelper,
     IFileHelper fileHelper)
 {
     this.testHostLauncher = testHostLauncher;
     this.processHelper    = processHelper;
     this.fileHelper       = fileHelper;
 }
예제 #28
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultTestHostManager"/> class.
        /// </summary>
        /// <param name="architecture">Platform architecture of the host process.</param>
        /// <param name="framework">Runtime framework for the host process.</param>
        /// <param name="processHelper">Process helper instance.</param>
        /// <param name="shared">Share the manager for multiple sources or not</param>
        internal DefaultTestHostManager(Architecture architecture, Framework framework, IProcessHelper processHelper, bool shared)
        {
            this.architecture    = architecture;
            this.framework       = framework;
            this.processHelper   = processHelper;
            this.testHostProcess = null;

            this.Shared = shared;
        }
예제 #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotnetTestHostManager"/> class.
 /// </summary>
 /// <param name="processHelper">Process helper instance.</param>
 /// <param name="fileHelper">File helper instance.</param>
 /// <param name="dotnetHostHelper">DotnetHostHelper helper instance.</param>
 internal DotnetTestHostManager(
     IProcessHelper processHelper,
     IFileHelper fileHelper,
     IDotnetHostHelper dotnetHostHelper)
 {
     this.processHelper    = processHelper;
     this.fileHelper       = fileHelper;
     this.dotnetHostHelper = dotnetHostHelper;
 }
예제 #30
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultTestHostManager"/> class.
        /// </summary>
        /// <param name="architecture">Platform architecture of the host process.</param>
        /// <param name="framework">Runtime framework for the host process.</param>
        /// <param name="processHelper">Process helper instance.</param>
        /// <param name="shared">Share the manager for multiple sources or not</param>
        internal DefaultTestHostManager(Architecture architecture, Framework framework, IProcessHelper processHelper, bool shared)
        {
            this.architecture    = architecture;
            this.processHelper   = processHelper;
            this.testHostProcess = null;

            this.Shared = shared;
            this.hostExitedEventRaised = false;
        }
예제 #31
0
 public TestRunner(IProcessHelper process,
     ITestCaseStreamReaderFactory testCaseStreamReaderFactory,
     IFileProbe fileProbe,
     ITestContextBuilder htmlTestFileCreator,
     ICompilerCache compilerCache)
 {
     this.process = process;
     this.testCaseStreamReaderFactory = testCaseStreamReaderFactory;
     this.fileProbe = fileProbe;
     stopWatch = new Stopwatch();
     testContextBuilder = htmlTestFileCreator;
     this.compilerCache = compilerCache;
 }
예제 #32
0
 public TestRunner(IProcessHelper process,
                   ITestCaseStreamReaderFactory testCaseStreamReaderFactory,
                   IFileProbe fileProbe,
                   IBatchCompilerService batchCompilerService,
                   ITestHarnessBuilder testHarnessBuilder,
                   ITestContextBuilder htmlTestFileCreator,
                   IChutzpahTestSettingsService testSettingsService,
                   ITransformProcessor transformProcessor)
 {
     this.process = process;
     this.testCaseStreamReaderFactory = testCaseStreamReaderFactory;
     this.fileProbe = fileProbe;
     this.batchCompilerService = batchCompilerService;
     this.testHarnessBuilder = testHarnessBuilder;
     stopWatch = new Stopwatch();
     testContextBuilder = htmlTestFileCreator;
     this.testSettingsService = testSettingsService;
     this.transformProcessor = transformProcessor;
 }
예제 #33
0
 public GraphHopperHelper(ILogger logger, IProcessHelper processHelper) : base(logger, processHelper) { }
예제 #34
0
 public GpsBabelGateway(ILogger logger, IProcessHelper processHelper)
 {
     _logger = logger;
     _processHelper = processHelper;
 }
예제 #35
0
 protected BaseNssmHelper(ILogger logger, IProcessHelper processHelper)
 {
     Logger = logger;
     ProcessHelper = processHelper;
 }
예제 #36
0
 public BatchCompilerService(IProcessHelper processHelper, IFileSystemWrapper fileSystem, ISourceMapDiscoverer sourceMapDiscoverer)
 {
     this.processHelper = processHelper;
     this.fileSystem = fileSystem;
     this.sourceMapDiscoverer = sourceMapDiscoverer;
 }
        /// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by Visual Studio.
        /// </summary>
        protected override void Initialize()
        {
            Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", ToString()));
            base.Initialize();

            dte = (DTE2)GetService(typeof(DTE));
            if (dte == null)
            {
                //if dte is null then we throw a exception
                //this is a fatal error
                throw new ArgumentNullException("dte");
            }

            testRunner = TestRunner.Create();

            processHelper = new ProcessHelper();
            Logger = new Logger(this);
            Settings = GetDialogPage(typeof(ChutzpahSettings)) as ChutzpahSettings;

            statusBar = GetService(typeof(SVsStatusbar)) as IVsStatusbar;
            runnerCallback = new ParallelRunnerCallbackAdapter(new VisualStudioRunnerCallback(dte, statusBar));


            // Add our command handlers for menu (commands must exist in the .vsct file)
            var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            if (null != mcs)
            {
                // Command - Run JS Tests
                var runJsTestsCmd = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidRunJSTests);
                var runJsTestMenuCmd = new OleMenuCommand(RunJSTestCmdCallback, runJsTestsCmd);
                runJsTestMenuCmd.BeforeQueryStatus += RunJSTestsCmdQueryStatus;
                mcs.AddCommand(runJsTestMenuCmd);

                // Command - Run JS tests in browser
                var runJsTestsInBrowserCmd = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidRunInBrowser);
                var runJsTestInBrowserMenuCmd = new OleMenuCommand(RunJSTestInBrowserCmdCallback, runJsTestsInBrowserCmd);
                runJsTestInBrowserMenuCmd.BeforeQueryStatus += RunJSTestsInBrowserCmdQueryStatus;
                mcs.AddCommand(runJsTestInBrowserMenuCmd);

                // Command - Run Code Coverage
                var runJsTestCodeCoverageCmd = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidRunCodeCoverage);
                var runJsTestCodeCoverageMenuCmd = new OleMenuCommand(RunCodeCoverageCmdCallback, runJsTestCodeCoverageCmd);
                runJsTestCodeCoverageMenuCmd.BeforeQueryStatus += RunCodeCoverageCmdQueryStatus;
                mcs.AddCommand(runJsTestCodeCoverageMenuCmd);


                var runJsTestDebuggerCmd = new CommandID(GuidList.guidChutzpahCmdSet, (int)PkgCmdIDList.cmdidDebugTests);
                var runJsTestDebuggerMenuCmd = new OleMenuCommand(RunDebuggerCmdCallback, runJsTestDebuggerCmd);
                runJsTestDebuggerMenuCmd.BeforeQueryStatus += RunDebuggerCmdQueryStatus;
                mcs.AddCommand(runJsTestDebuggerMenuCmd);

            }


            this.solutionListener = new SolutionEventsListener(this);
            this.solutionListener.SolutionUnloaded += OnSolutionUnloaded;
            this.solutionListener.SolutionProjectChanged += OnSolutionProjectChanged;
            this.solutionListener.StartListeningForChanges();

        }
예제 #38
0
 public ElasticSearchHelper(ILogger logger, IProcessHelper processHelper) : base(logger, processHelper)
 {
 }