tiny-engine/packages/vue-generator/test/testcases/full/index.config.js

47 lines
1.4 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
module.exports = {
description:
'full目录出码模块的测试用例每个case中 input 为页面/区块的schemaoutput为预期的输出result为实际的输出(生成的代码)',
cases: [
{
name: 'case1_normal',
pageName: 'FormTable',
description: '测试代码生成流程'
},
{
name: 'case2_prop-accessor',
pageName: 'UsePropAccessor',
description: '测试区块的 prop 支持 accessor 协议'
},
{
name: 'case3_state-accessor',
pageName: 'UseStateAccessor',
description: '测试区块的 state 支持 accessor 协议'
},
{
name: 'case4_canvasrow-component',
pageName: 'BuiltInComponent',
description: '测试内置组件 CanvasRow、CanvasCol、CanvasRowColContainer'
}
],
input: {
fileName: 'page.schema.json',
type: 'json'
},
output: {
fileName: 'output',
type: 'vue'
}
}