Skip to content

Examples of tests for Hubitat scripts using hubitat_ci

License

Notifications You must be signed in to change notification settings

biocomp/hubitat_ci_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Examples of tests for Hubitat scripts using hubitat_ci

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages