예제 #1
0
 public NUnitProjectTestSuite(DotNetProject project) : base(project.Name, project)
 {
     storeId              = Path.GetFileName(project.FileName);
     resultsPath          = Path.Combine(project.BaseDirectory, "test-results");
     ResultsStore         = new XmlResultsStore(resultsPath, storeId);
     this.project         = project;
     project.NameChanged += new SolutionItemRenamedEventHandler(OnProjectRenamed);
     IdeApp.ProjectOperations.EndBuild += new BuildEventHandler(OnProjectBuilt);
 }
예제 #2
0
		public NUnitProjectTestSuite (DotNetProject project): base (project.Name, project)
		{
			storeId = Path.GetFileName (project.FileName);
			resultsPath = Path.Combine (project.BaseDirectory, "test-results");
			ResultsStore = new XmlResultsStore (resultsPath, storeId);
			this.project = project;
			project.NameChanged += new SolutionItemRenamedEventHandler (OnProjectRenamed);
			IdeApp.ProjectOperations.EndBuild += new BuildEventHandler (OnProjectBuilt);
		}
		public RootTest (NUnitAssemblyGroupProject project): base (project.Name, project)
		{
			this.project = project;
			resultsPath = Path.Combine (project.BaseDirectory, "test-results");
			ResultsStore = new XmlResultsStore (resultsPath, Path.GetFileName (project.FileName));
			
			lastConfig = (NUnitAssemblyGroupProjectConfiguration) project.DefaultConfiguration;
			if (lastConfig != null)
				lastConfig.AssembliesChanged += new EventHandler (OnAssembliesChanged);
		}
 public NUnitProjectTestSuite(Project project)
     : base(project.Name, project)
 {
     storeId = Path.GetFileName (project.FileName);
     resultsPath = Path.Combine (project.BaseDirectory, "test-results");
     ResultsStore = new XmlResultsStore (resultsPath, storeId);
     this.project = project;
     lastAssemblyTime = GetAssemblyTime ();
     project.NameChanged += new CombineEntryRenamedEventHandler (OnProjectRenamed);
     Runtime.ProjectService.EndBuild += new ProjectCompileEventHandler (OnProjectBuilt);
 }
예제 #5
0
		public WorkspaceTestGroup (Workspace ws): base (ws.Name, ws)
		{
			string storeId = ws.Name;
			string resultsPath = MonoDevelop.NUnit.RootTest.GetTestResultsDirectory (ws.BaseDirectory);
			ResultsStore = new XmlResultsStore (resultsPath, storeId);
			
			workspace = ws;
			workspace.ItemAdded += OnEntryChanged;
			workspace.ItemRemoved += OnEntryChanged;
			workspace.NameChanged += OnCombineRenamed;
		}
		public SolutionFolderTestGroup (SolutionFolder c): base (c.Name, c)
		{
			string storeId = c.ItemId;
			string resultsPath = MonoDevelop.NUnit.RootTest.GetTestResultsDirectory (c.BaseDirectory);
			ResultsStore = new XmlResultsStore (resultsPath, storeId);
			
			combine = c;
			combine.ItemAdded += OnEntryChanged;
			combine.ItemRemoved += OnEntryChanged;
			combine.NameChanged += OnCombineRenamed;
		}
		public SolutionFolderTestGroup (SolutionFolder c): base (c.Name, c)
		{
			string storeId = c.ItemId;
			string resultsPath = Path.Combine (c.BaseDirectory, "test-results");
			ResultsStore = new XmlResultsStore (resultsPath, storeId);
			
			combine = c;
			combine.ItemAdded += OnEntryChanged;
			combine.ItemRemoved += OnEntryChanged;
			combine.NameChanged += OnCombineRenamed;
		}
		public WorkspaceTestGroup (Workspace ws): base (ws.Name, ws)
		{
			string storeId = ws.Name;
			string resultsPath = Path.Combine (ws.BaseDirectory, "test-results");
			ResultsStore = new XmlResultsStore (resultsPath, storeId);
			
			workspace = ws;
			workspace.ItemAdded += OnEntryChanged;
			workspace.ItemRemoved += OnEntryChanged;
			workspace.NameChanged += OnCombineRenamed;
		}
예제 #9
0
        public WorkspaceTestGroup(Workspace ws) : base(ws.Name, ws)
        {
            string storeId     = ws.Name;
            string resultsPath = MonoDevelop.NUnit.RootTest.GetTestResultsDirectory(ws.BaseDirectory);

            ResultsStore = new XmlResultsStore(resultsPath, storeId);

            workspace              = ws;
            workspace.ItemAdded   += OnEntryChanged;
            workspace.ItemRemoved += OnEntryChanged;
            workspace.NameChanged += OnCombineRenamed;
        }
        public CombineTestGroup(Combine c)
            : base(c.Name, c)
        {
            string storeId = Path.GetFileName (c.FileName);
            string resultsPath = Path.Combine (c.BaseDirectory, "test-results");
            ResultsStore = new XmlResultsStore (resultsPath, storeId);

            combine = c;
            combine.EntryAdded += new CombineEntryEventHandler (OnEntryChanged);
            combine.EntryRemoved += new CombineEntryEventHandler (OnEntryChanged);
            combine.NameChanged += new CombineEntryRenamedEventHandler (OnCombineRenamed);
        }
        public WorkspaceTestGroup(Workspace ws) : base(ws.Name, ws)
        {
            string storeId     = ws.Name;
            string resultsPath = Path.Combine(ws.BaseDirectory, "test-results");

            ResultsStore = new XmlResultsStore(resultsPath, storeId);

            workspace              = ws;
            workspace.ItemAdded   += OnEntryChanged;
            workspace.ItemRemoved += OnEntryChanged;
            workspace.NameChanged += OnCombineRenamed;
        }
        public SolutionFolderTestGroup(SolutionFolder c) : base(c.Name, c)
        {
            string storeId     = c.ItemId;
            string resultsPath = MonoDevelop.NUnit.RootTest.GetTestResultsDirectory(c.BaseDirectory);

            ResultsStore = new XmlResultsStore(resultsPath, storeId);

            combine              = c;
            combine.ItemAdded   += OnEntryChanged;
            combine.ItemRemoved += OnEntryChanged;
            combine.NameChanged += OnCombineRenamed;
        }
        public SolutionFolderTestGroup(SolutionFolder c) : base(c.Name, c)
        {
            string storeId     = c.ItemId;
            string resultsPath = Path.Combine(c.BaseDirectory, "test-results");

            ResultsStore = new XmlResultsStore(resultsPath, storeId);

            combine              = c;
            combine.ItemAdded   += OnEntryChanged;
            combine.ItemRemoved += OnEntryChanged;
            combine.NameChanged += OnCombineRenamed;
        }
        public RootTest(NUnitAssemblyGroupProject project)
            : base(project.Name, project)
        {
            this.project = project;
            resultsPath = Path.Combine (project.BaseDirectory, "test-results");
            ResultsStore = new XmlResultsStore (resultsPath, Path.GetFileName (project.FileName));

            lastConfig = (NUnitAssemblyGroupProjectConfiguration) project.ActiveConfiguration;
            if (lastConfig != null)
                lastConfig.AssembliesChanged += new EventHandler (OnAssembliesChanged);
        }