2021 Blockly Developer Summit: Test Helpers
A Google TechTalk, presented by Monica Kozbial, 2021/04/28-29
ABSTRACT: This talk was presented as part of the 2021 Blockly Summit. As part of the @blockly/dev-tools plugin, the Blockly team has provided a set of helpers to use with testing, in particular for custom fields and blocks. In this talk, we'll dive into what test helpers are available and how they can help you in your testing.
Field Test Helpers: https://github.com/google/blockly-samples/blob/%40blockly/dev-tools%402.2.1/plugins/dev-tools/src/field_test_helpers.mocha.js
Block Test Helperhttps://github.com/google/blockly-samples/blob/%40blockly/dev-tools%402.2.1/plugins/dev-tools/src/block_test_helpers.mocha.js.js
Common Test Helpers:https://github.com/google/blockly-samples/blob/%40blockly/dev-tools%402.2.1/plugins/dev-tools/src/common_test_helpers.mocha.jss
Example tests for runCodeGenerationTestSuites:
https://github.com/google/blockly/blob/5.20210325.1/tests/mocha/field_multilineinput_test.js#L100
https://github.com/google/blockly-samples/blob/%40blockly/block-plus-minus%402.0.26/plugins/block-plus-minus/test/procedures.mocha.js#L58
Developer forum: https://groups.google.com/g/blockly