AccUnit

Unit Testing in VBA - Microsoft Access, Excel, …

Testing with vbWatchdog

From AccUnit
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
[[de:Testen mit vbWatchdog]]
[[de:Testen mit vbWatchdog]]
-
Use PropagateUnhandledClassErrors to configure vbWatchdog (Version 2.3.2 or higher) for testing in Setup/TearDown.
+
Use <code>PropagateUnhandledClassErrors</code> to configure vbWatchdog (Version 2.3.2 or higher) for testing in Setup/TearDown.
<source>
<source>
Public Sub Setup()
Public Sub Setup()

Current revision as of 20:27, 12 February 2011

Use PropagateUnhandledClassErrors to configure vbWatchdog (Version 2.3.2 or higher) for testing in Setup/TearDown.

Public Sub Setup()
   EnableWatchdog
   ErrEx.PropagateUnhandledClassErrors = True
End Sub
 
Public Sub TearDown()
   DisableWatchdog
   ErrEx.PropagateUnhandledClassErrors = False
End Sub
Personal tools