Esempio n. 1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var path = Environment.CurrentDirectory;

            if (args.Length > 0)
            {
                path = Path.GetFullPath(args[0]);
            }

            if (!Directory.Exists(path) && !File.Exists(path))
            {
                Console.WriteLine("Solution/Directory {0} does not exist", path);
                return;
            }

            var form = new RunFeedbackForm(path);

            Logger.SetListener(new FileLogger());
            Client = new ATEClient();
            Client.Start(new StartupParams(path), form);

            Application.Run(form);
            Client.Stop();
            System.Threading.Thread.Sleep(300);
        }
Esempio n. 2
0
 static void run(string localConfig, string path, IStartupHandler handler)
 {
     if (localConfig != null)
     {
         var parser = new PathParser(localConfig);
         if (Directory.Exists(Path.Combine(path, localConfig)))
         {
             localConfig = parser.ToAbsolute(path);
         }
     }
     Logger.SetListener(new FileLogger());
     Client = new ATEClient();
     Client.Start(new StartupParams(path, localConfig), handler);
 }
Esempio n. 3
0
        private void connect(string continuousTestsPath)
        {
            var currentDir = Environment.CurrentDirectory;

            try
            {
                if (continuousTestsPath != null)
                {
                    Environment.CurrentDirectory = continuousTestsPath;
                }
                if (_handle == null)
                {
                    _client.Start(new StartupParams(_watchToken), this);
                }
                else
                {
                    _client.Start(new StartupParams(_handle.IP, _handle.Port, _handle.Token), this);
                }
            }
            finally
            {
                Environment.CurrentDirectory = currentDir;
            }
        }
Esempio n. 4
0
 private void spawnVM(string solutionPath)
 {
     _client.Start(new StartupParams(solutionPath), StartupHandler);
 }