コード例 #1
0
ファイル: TestRunner.cs プロジェクト: thomasboss0/chutzpah
        private void ConfigureTracing(TestRunConfiguration testRunConfiguration)
        {
            var path = testRunConfiguration.TraceFilePath;

            if (testRunConfiguration.EnableTracing)
            {
                ChutzpahTracer.AddFileListener(path);
            }
            else
            {
                // TODO (mmanela): There is a known issue with this if the user is running chutzpah in VS and changes their trace path
                // This will result in that path not getting removed until the VS is restarted. To fix this we need to keep trace of previous paths
                // and clear them all out.
                ChutzpahTracer.RemoveFileListener(path);
            }
        }