mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Add suite name to generator tests
This commit is contained in:
@@ -56,6 +56,11 @@ Blockly.Python['unittest_main'] = function(block) {
|
||||
|
||||
// Setup global to hold test results.
|
||||
var code = resultsVar + ' = []\n';
|
||||
// Say which test suite this is.
|
||||
code += 'print(\'\\n====================\\n\\n' +
|
||||
'Running suite: ' +
|
||||
block.getFieldValue('SUITE_NAME') +
|
||||
'\')\n';
|
||||
// Run tests (unindented).
|
||||
code += Blockly.Python.statementToCode(block, 'DO')
|
||||
.replace(/^ /, '').replace(/\n /g, '\n');
|
||||
|
||||
Reference in New Issue
Block a user