- This project is a vscode plug-in project based on JavaScript. It must be run by vscode. During the plug-in running process, it must get the focus throughout the process, and the mouse also needs to be on the focused window. Then the plug-in will automatically perform a series of automated operations and generate a log file.
- For information about manual testing, please refer to here.
- If want to use the latest plugin, click here. Then install it manually in
vscode.
- Nodejs V20
- Npm 7+
- Visual Code
- TypeSpec Compiler CLI: "npm install -g @typespec/compiler"
- TypeSpec Vscode Extension
- .NET 8.0 SDK
- Java 11 or above, and Maven
- Python 3.8+
The project entry file is extension.js, which is the entry file of the entire project. Its main function is to register the plug-in and listen to the plug-in events. The core directory is src. There are five subfolders under the src directory, and their functions are as follows:
common: Public module, including some utility functionsscripts: Script module, contains some automation scriptscreateTypespecProject: New TypeSpec projects can be created using a variety of templates for specific purposes.generateTypespecProject: Different emitter types can be used to generate different codes to meet specific purposes.importTypespecProject: With the TypeSpec emitter for OpenAPI3, users can import a TypeSpec file from a designated OpenAPI3 document. While it is possible to repeatedly convert OpenAPI3 to TypeSpec.
This quickstart will show you how to use this tool to fetch all test data and run test cases locally.
-
Clone this repo and open it with Visual Studio.
git clone https://github.com/Yionse/VscodeExtensionAutomation.git -
Install dependencies using
yarn.npm i -g yarn yarn -
Press
F5to run the plugin and wait for the plugin to start a new vscode window. -
In the new window, first select an empty file as the root directory, click the
tabbar on the left and selecttypespec auto. Then click the requireditemto perform automated testing.
The current log is automatically generated. Each time the automation program is run, it will be automatically saved in the local D:\typespecAutomationLogs. To view the log example, click here.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.