コード例 #1
0
 public override void Init()
 {
     base.Init();
     var karmaConfFile = Path.Combine(SolutionDir, @"TestProjects\JasmineTypescriptTests\karma.conf.js");
     var settings = new KarmaTestAdapter.TestAdapter.KarmaSettings("Test", karmaConfFile, f => File.Exists(f), TestProjectsDir, Logger);
     Server = new KarmaTestAdapter.Karma.KarmaServer(settings, Logger);
     _startTime = DateTime.Now;
     Server.OutputReceived += line => Logger.Info("[Karma] {0}", line);
     Server.ErrorReceived += line => Logger.Info("[Karma] {0}", line);
 }
コード例 #2
0
ファイル: KarmaServer.cs プロジェクト: tj-sb/KarmaTestAdapter
        public override void Init()
        {
            base.Init();
            var karmaConfFile = Path.Combine(SolutionDir, @"TestProjects\JasmineTypescriptTests\karma.conf.js");
            var settings      = new KarmaTestAdapter.TestAdapter.KarmaSettings("Test", karmaConfFile, f => File.Exists(f), TestProjectsDir, Logger);

            Server                 = new KarmaTestAdapter.Karma.KarmaServer(settings, Logger);
            _startTime             = DateTime.Now;
            Server.OutputReceived += line => Logger.Info("[Karma] {0}", line);
            Server.ErrorReceived  += line => Logger.Info("[Karma] {0}", line);
        }