Azure / Azure/typespec-azure

[azure-http-specs] Enhance tests for `@override`

Open
#3,197 0 comments 0 reactions 0 assignees View on GitHub
lib:azure-http-specs
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

Since we got more use cases regarding `@override`, we should add more tests in spector to ensure the subtle behavior discrepancies introduced by `@override` could be tested in emitter:
1. Optionality change
2. Sequence change
3. Other possible usages

A real use case in key vault about optionality change [here](https://github.com/Azure/azure-rest-api-specs/pull/34032).

Contributor guide

Open the contributing guide

Research direction

Start by locating the spector emitter tests and reviewing how existing @override cases are covered. Use the linked Key Vault example to understand the optionality change, then add coverage for optionality, sequence changes, and other relevant usages. Done means the emitter tests exercise these discrepancies and pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.