by Giulio Scattolin
Version 1 (December 6, 2019)
Download (42 downloads)
Sigma is a simple and effective testing framework for Automate.
As every testing framework it has been built to help developers to ensure their flows have always the expected behaviour.
In Sigma a ๐ต๐ฆ๐ด๐ต begins with a Flow Beginning block and it ends sending a brodcast message.
Also, ๐ต๐ฆ๐ด๐ต ๐ด๐ถ๐ช๐ต๐ฆ๐ด exist: a suite is a group of tests which provides a way to report a bunch of tests at once.
๐๐ฉ๐ข๐ต ๐ฅ๐ฐ ๐บ๐ฐ๐ถ ๐ต๐ฉ๐ช๐ฏ๐ฌ ๐ข๐ฃ๐ฐ๐ถ๐ต ๐ช๐ต? ๐๐ฏ๐บ ๐ง๐ฆ๐ฆ๐ฅ๐ฃ๐ข๐ค๐ฌ ๐ช๐ด ๐ท๐ฆ๐ณ๐บ ๐ข๐ฑ๐ฑ๐ณ๐ฆ๐ค๐ช๐ข๐ต๐ฆ๐ฅ! ๐๐ฉ๐ข๐ฏ๐ฌ ๐บ๐ฐ๐ถ!
FEATURES
- Every test has 5 seconds to run or it will fail for taking too much time. This can be customized per test providing a "timeout" field when it is enqueued.
- Tests can be parametrized providing a "payload" field when they are enqueued.
STARTING POINTS
- "โ๏ธ Start the engine" is required for the framework to run correctly. It handles incoming sigma.action.ENQUEUE for sigma/test and sigma/suite. Every broadcast is always appended to the log.
- "โน๏ธ Enable logging" will log the results of every test and suite run.
- "๐ Learn more" explains a bit more the inner concepts of the framework.
- "๐งช Try me!" says it all, it shows the features of the framework providing common blocks to copy and reuse.
REQUIREMENTS
- Having more than 30 blocks it needs the Premium version of Automate.
NEXT
- Implement an example of a parametrized tests.
- Implement an example of a test having custom timeout time.
BUGS
- None at the moment.
๐๐ฏ๐บ ๐ด๐ถ๐จ๐จ๐ฆ๐ด๐ต๐ช๐ฐ๐ฏ๐ด? ๐๐ฆ๐ข๐ต๐ถ๐ณ๐ฆ ๐ณ๐ฆ๐ฒ๐ถ๐ฆ๐ด๐ต๐ด? ๐๐ฆ๐ข๐ค๐ฉ ๐ฎ๐ฆ ๐ข๐ต https://www.reddit.com/u/giulioscattolin ๐ฐ๐ณ ๐ญ๐ฆ๐ข๐ท๐ฆ ๐ข ๐ณ๐ฆ๐ท๐ช๐ฆ๐ธ ๐ฃ๐ฆ๐ญ๐ฐ๐ธ!
CHANGELOG
V0.1.0 2019-12-06 โข Version 1