2021 Blockly Developer Summit: Test Helpers

Subscribers:
348,000
Published on ● Video Link: https://www.youtube.com/watch?v=7X-oB210LjY



Category:
Let's Play
Duration: 9:48
1,068 views
11


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