Skip to content

AccessCodeLib/AccUnit

Repository files navigation

AccUnit

AccUnit - Test your Access/Excel VBA code

For more informations see Wiki and https://accunit.access-codelib.net/

Installation

How-to: Install-AccUnit

Notes

Dev state

  • Run tests
    • Tests can started by Access-Add-In or Excel Add-In
    • Tag filter: TestSuite.Add(...).Filter("abc,xyz").Run
    • Test filter: TestSuite.Add(...).SelectTests("xyz*").Run
  • Write tests
    • Row test available
    • Generate test classes with TestClassGenerator (write TestSuite.TestClassGenerator in VBA immediate window) (Video)
  • Output test results
    • TestSuite with 'Debug.Print' output to VBE Immediate window
    • Output test results to log/text file
  • Other features
    • Code coverage tests (Video)

Remarks

Examples see ./examples/msaccess/

If the DLL files are located in a network drive, it will not work.