示例#1
0
        public void SetUp()
        {
            settings = new ConfigurableSonarLintSettings
            {
                DaemonLogLevel = DaemonLogLevel.Verbose
            };
            logger = new TestLogger(logToConsole: true);

            tempPath    = Path.Combine(TestContext.DeploymentDirectory, Path.GetRandomFileName());
            storagePath = Path.Combine(TestContext.DeploymentDirectory, Path.GetRandomFileName());
            Directory.CreateDirectory(tempPath);
            Directory.CreateDirectory(storagePath);
            testableDaemon = new TestableSonarLintDaemon(settings, logger, VSIX.SonarLintDaemon.daemonVersion, storagePath, tempPath);
        }
示例#2
0
        public void SetUp()
        {
            settings = new ConfigurableSonarLintSettings
            {
                DaemonLogLevel        = DaemonLogLevel.Verbose,
                IsActivateMoreEnabled = true // default to assuming the user has turned on support for additional languages
            };
            logger = new TestLogger(logToConsole: true);

            dummyInstaller = new DummyDaemonInstaller
            {
                IsInstalledReturnValue = true, // installed by default
                InstallationPath       = Path.Combine(TestContext.DeploymentDirectory, TestContext.TestName, Path.GetRandomFileName())
            };
            Directory.CreateDirectory(dummyInstaller.InstallationPath);


            testableDaemon = new TestableSonarLintDaemon(settings, logger, dummyInstaller);

            logger.Reset(); // clear any messages logged during construction
        }