Beispiel #1
0
        public static void Main(string[] args)
        {
            XUnitRunner.PreloadAssemblies();
            RemoteProcessServer server = new RemoteProcessServer();

            server.Connect(args, new RemoteXUnitRunner(server));
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            RemoteProcessServer server = new RemoteProcessServer();
            var builderEngine          = new BuildEngine(server);

            server.Connect(args, builderEngine);
            builderEngine.WaitHandle.WaitOne();
        }
Beispiel #3
0
        public static void Main(string[] args)
        {
            // This is required for MSBuild to properly load the .exe.config configuration file for this executable.
            Environment.SetEnvironmentVariable("MSBUILD_EXE_PATH", typeof(MainClass).Assembly.Location);

            RemoteProcessServer server = new RemoteProcessServer();

            server.Connect(args, new AssemblyResolver(server));
        }
Beispiel #4
0
        public static void Main(string[] args)
        {
            // This is required for MSBuild to properly load the .exe.config configuration file for this executable.
            Environment.SetEnvironmentVariable("MSBUILD_EXE_PATH", typeof(MainClass).Assembly.Location);

            // Disable VBCSCompiler until it is reliable on mono. Currently leaves orphaned processes for VB projects taking up 100% CPU.
            // https://github.com/mono/mono/issues/11939
            Environment.SetEnvironmentVariable("UseSharedCompilation", bool.FalseString);

            RemoteProcessServer server = new RemoteProcessServer();

            server.Connect(args, new AssemblyResolver(server));
        }
Beispiel #5
0
        public RemoteNUnitTestRunner(RemoteProcessServer server)
        {
            this.server = server;

            // Add standard services to ServiceManager
            ServiceManager.Services.AddService(new DomainManager());
            ServiceManager.Services.AddService(new ProjectService());
            ServiceManager.Services.AddService(new AddinRegistry());
            ServiceManager.Services.AddService(new AddinManager());
            ServiceManager.Services.AddService(new TestAgency());

            // Initialize services
            ServiceManager.Services.InitializeServices();
        }
Beispiel #6
0
        public NUnitTestRunner(RemoteProcessServer server)
        {
            this.server = server;

            // Note: We need to load all nunit.*.dll assemblies before we do *anything* else in this class
            // This is to ensure that we always load the assemblies from the monodevelop directory and not
            // from the directory of the assembly under test. For example we wnat to load
            // /Applications/MonoDevelop/lib/Addins/nunit.framework.dll and not /user/app/foo/bin/debug/nunit.framework.dll
            var    path      = Path.GetDirectoryName(GetType().Assembly.Location);
            string nunitPath = Path.Combine(path, "nunit.framework.dll");

            Assembly.LoadFrom(nunitPath);

            Initialize();
        }
Beispiel #7
0
 public AssemblyResolver(RemoteProcessServer server)
 {
     this.server = server;
 }
Beispiel #8
0
 public EventListenerWrapper(RemoteProcessServer server)
 {
     this.server = server;
 }
Beispiel #9
0
 public RemoteXUnitRunner(RemoteProcessServer server)
 {
     this.server = server;
 }
Beispiel #10
0
 public NUnitTestRunner(RemoteProcessServer server)
 {
     this.server = server;
     Initialize();
 }
 public BuildEngine(RemoteProcessServer pserver)
 {
     server = pserver;
 }
Beispiel #12
0
        public static void Main(string[] args)
        {
            RemoteProcessServer server = new RemoteProcessServer();

            server.Connect(args, new AssemblyResolver(server));
        }
Beispiel #13
0
 public static void Main(string [] args)
 {
     server = new RemoteProcessServer();
     server.Connect(args, new NUnitTestRunner(server));
 }