Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.3 KB

README.md

File metadata and controls

17 lines (10 loc) · 1.3 KB

Examples of hubitat_ci usage

Build Status

Contents

Minimal - this folder has minimal build file that runs a couple of tests against dummy app script.

HowToTestDevice.groovy - bare minimum test for a device driver.

HowToTestDeviceWithInlineScript.groovy - script can be provided as a string in the test, as opposed to loading from file.

Mocking.groovy - various examples of mocking APIs, script functions, user inputs and so on.

UsingCapturingLog.groovy - there's a helper log class that can be used instead of mock.

DisablingValidations.groovy - most of validations can be disabled.

ValidatingInputsAndProperties.groovy - most of information generated during script setup can be read back.