@@ -51,31 +51,40 @@ public void RunTestsAsync(string type, string owner, string name, string procedu
5151
5252 SetWindowTitle ( type , owner , name , procedure ) ;
5353
54- if ( coverage )
54+ try
5555 {
56- var codeCoverageReportDialog = new CodeCoverageReportDialog ( GetPath ( type , owner , name , procedure ) ) ;
57- var dialogResult = codeCoverageReportDialog . ShowDialog ( ) ;
58- if ( dialogResult == DialogResult . OK )
56+ testRunner . GetVersion ( ) ;
57+
58+ if ( coverage )
5959 {
60- txtStatus . Text = "Running tests with coverage..." ;
60+ var codeCoverageReportDialog = new CodeCoverageReportDialog ( GetPath ( type , owner , name , procedure ) ) ;
61+ var dialogResult = codeCoverageReportDialog . ShowDialog ( ) ;
62+ if ( dialogResult == DialogResult . OK )
63+ {
64+ txtStatus . Text = "Running tests with coverage..." ;
6165
62- RunWithCoverage ( type , owner , name , procedure , codeCoverageReportDialog ) ;
66+ RunWithCoverage ( type , owner , name , procedure , codeCoverageReportDialog ) ;
6367
64- Show ( ) ;
68+ Show ( ) ;
6569
66- CollectResults ( true ) ;
67- CollectReport ( ) ;
70+ CollectResults ( true ) ;
71+ CollectReport ( ) ;
72+ }
6873 }
69- }
70- else
71- {
72- txtStatus . Text = "Running tests..." ;
74+ else
75+ {
76+ txtStatus . Text = "Running tests..." ;
7377
74- RunTests ( type , owner , name , procedure ) ;
78+ RunTests ( type , owner , name , procedure ) ;
7579
76- Show ( ) ;
80+ Show ( ) ;
7781
78- CollectResults ( false ) ;
82+ CollectResults ( false ) ;
83+ }
84+ }
85+ catch ( Exception e )
86+ {
87+ MessageBox . Show ( "utPLSQL is not installed" , "utPLSQL not installed" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
7988 }
8089 }
8190
0 commit comments