-
Notifications
You must be signed in to change notification settings - Fork 309
Add test case for Typespec Extension - 2 #7969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
All changed packages have been documented.
|
I don’t think there is a point to test more than one case for each flow. This is just supposed to check the ui still works anything more specific should be left to faster unit tests |
"@types/cross-spawn": "~6.0.6", | ||
"@types/mocha": "^10.0.9", | ||
"@types/node": "~24.0.3", | ||
"@types/semver": "^7.5.8", | ||
"@types/vscode": "~1.100.0", | ||
"@types/which": "^3.0.4", | ||
"@typespec/compiler": "workspace:^", | ||
"@typespec/http": "workspace:^", | ||
"@typespec/openapi": "workspace:^", | ||
"@typespec/openapi3": "workspace:^", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also shouldn't have tests that depends on other things. This should be testing the ui in the most basic way not the compile or other functionality of those packages.
"@types/cross-spawn": "~6.0.6", | ||
"@types/mocha": "^10.0.9", | ||
"@types/node": "~24.0.3", | ||
"@types/semver": "^7.5.8", | ||
"@types/vscode": "~1.100.0", | ||
"@types/which": "^3.0.4", | ||
"@typespec/compiler": "workspace:^", | ||
"@typespec/http": "workspace:^", | ||
"@typespec/openapi": "workspace:^", | ||
"@typespec/openapi3": "workspace:^", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also shouldn't have tests that depends on other things. This should be testing the ui in the most basic way not the compile or other functionality of those packages.
Closed this PR, the replacement PR is: #7976 |
6 cases in
Create TypeSpec Project
includes:TypeSpec Library (With TypeScript)
TypeSpec Emitter (With TypeScript)
(rest-api-spec repo) Azure Data Plane Service Project
(rest-api-spec repo) Azure Resource Manager Service Project
(stand alone) Azure Data Plane Service Project
(stand alone) Azure Resource Manager Service Project
8 cases in
Emit TypeSpec Project
includes:Emit Client Code from TypeSpec - Python
Emit Client Code from TypeSpec - Java
Emit Client Code from TypeSpec - .NET
Emit Client Code from TypeSpec - JavaScript
Emit OpenAPI 3.x from TypeSpec
- triggered by command paletteEmit OpenAPI 3.x from TypeSpec
- triggered by right clickEmit Server Stub from TypeSpec - .NET
Emit Server Stub from TypeSpec - JavaScript
3 cases in
Import TypeSpec from OpenApI3
includes:Import TypeSpec from OpenAPI3
triggered by command paletteImport TypeSpec from OpenAPI3
triggered by right click on fileImport TypeSpec from OpenAPI3
triggered by right click on folder2 cases in
Preview API Documentation
includes:Preview API Documentation
triggered by command palettePreview API Documentation
triggered by right click on fileTest case
Emit Server Stub from TypeSpec - JavaScript
cannot be activated temporarily due to a known issue, otherwise it will constantly return errors. For details, please refer to #5580 (comment)