1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

项目测试代码结构调整

This commit is contained in:
程序员小墨 2024-12-07 18:22:22 +08:00
parent 7d0c1a0a3e
commit 6999fc30e8
3 changed files with 1107 additions and 1104 deletions

View File

@ -3,8 +3,8 @@ import * as assert from 'assert';
// You can import and use all API from the 'vscode' module // You can import and use all API from the 'vscode' module
// as well as import your extension to test it // as well as import your extension to test it
import * as vscode from 'vscode'; import * as vscode from 'vscode';
import testGroups from './test-case'; import { pathConvertTestGroups } from './test-case/path-convert-test-case';
import { TestCase, TestCaseGroup } from './types/TestCaseType'; import { TestCase, TestCaseGroup } from './test-case/types/TestCaseType';
import { transformMutliLineText, transformText } from '../utils/transform'; import { transformMutliLineText, transformText } from '../utils/transform';
import { caseConversion } from '../core/variable-convert/conversion'; import { caseConversion } from '../core/variable-convert/conversion';
import { SupportCase } from '../core/variable-convert/types/SupportCaseType'; import { SupportCase } from '../core/variable-convert/types/SupportCaseType';
@ -22,10 +22,15 @@ suite('Extension Test Suite', () => {
}); });
*/ */
suite('Extension Test: run test case', () => { /**
*
*
* @since 2024-04-02
*/
suite('Extension Test: run variable convert test case', () => {
vscode.window.showInformationMessage('Start all tests.'); vscode.window.showInformationMessage('Start all tests.');
const groups: Array<TestCaseGroup> = testGroups; const groups: Array<TestCaseGroup> = pathConvertTestGroups;
for (const testGroup of groups) { for (const testGroup of groups) {
const testTitle = testGroup.testTitle; const testTitle = testGroup.testTitle;
const testCases: Array<TestCase> = testGroup.cases; const testCases: Array<TestCase> = testGroup.cases;

View File

@ -1,4 +1,4 @@
import { EOL } from "../../types/EOLType"; import { EOL } from "../../../types/EOLType";
export type TestCaseGroup = { export type TestCaseGroup = {
group: string group: string