|
||
---|---|---|
.. | ||
README.md |
README.md
Blockly Tests
This folder contains the test are currently available. Blockly doesn't really an option to write good automated test but this is at least a collection of tests that can be used for regression testing. It is not perfect but at least a good start.
To use the test, create a new rule and copy the content of any of the files into the code tab. As it sometimes uses items or things of the specific openHAB setup, these might have to be adapted.
The folder contains
- the code of the tests with the postfix "test"
- and a visual representation of all the blocks for each test.
#Overview of the tests
Color, List, Text blocks
Datetime between
Datetime comparison
Ephemeris and Notifications
Items and Things
Metadata
The test is based on an item name teststate with the namespace namespaceTest
The metadata of that namespace namespaceTest is configured as follows:
value: Stefan
config:
ooone: "123"
oone:
two: "456"
one:
two:
three: "756"
field1: 1
field2: 2
field3: 3