Skip to content
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

unbranded emitter, write test cases #3001

Open
weidongxu-microsoft opened this issue Dec 25, 2024 · 2 comments
Open

unbranded emitter, write test cases #3001

weidongxu-microsoft opened this issue Dec 25, 2024 · 2 comments
Assignees

Comments

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Dec 25, 2024

Depends on #3000

Can refer to existing tests on azure-core https://github.com/microsoft/typespec/tree/main/packages/http-client-java/generator/http-client-generator-test/src/test

Temporary skip tests that cannot write or cannot pass.

@weidongxu-microsoft
Copy link
Member Author

based on branch microsoft/typespec#5437

work folder packages/http-client-java/generator/http-client-generator-standard-test

setup script Setup.ps1

run test server npm run spector-serve

@weidongxu-microsoft
Copy link
Member Author

weidongxu-microsoft commented Dec 25, 2024

Expect the test there be almost same of those in https://github.com/microsoft/typespec/tree/main/packages/http-client-java/generator/http-client-generator-test/src/test

There would be less tests, e.g. cases under azure or _specs_.azure or tsptest namespace will not be there. (I've also removed some tsp source that cannot compile)
Basically, if the ##Client is not there, that test can be deleted.

Also, don't copy tests under generated namespace.

Example
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants