Skip to content

Add spector integration tests for ClientDoc, ResponseAsBool, Documentation_Lists, and Documentation_TextFormatting#3944

Open
Copilot wants to merge 2 commits intomainfrom
copilot/verify-spector-tests-scenario-groups
Open

Add spector integration tests for ClientDoc, ResponseAsBool, Documentation_Lists, and Documentation_TextFormatting#3944
Copilot wants to merge 2 commits intomainfrom
copilot/verify-spector-tests-scenario-groups

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

Implements missing azure-modular spector integration tests for 4 scenario groups covering @clientDoc, @responseAsBool, and documentation formatting scenarios.

Changes

  • cadl-ranch-list.js — Added 3 new entries to azureModularTsps:

    • azure/client-generator-core/client-doc
    • azure/client-generator-core/response-as-bool
    • documentation
  • New spec files:

    • azureClientGeneratorCoreClientDoc.spec.ts — Tests @clientDoc decorator (harvest POST with Plant body/response)
    • azureClientGeneratorCoreResponseAsBool.spec.ts — Tests @responseAsBool HEAD operations (204/404 both accepted)
    • documentation.spec.ts — Tests all 6 documentation formatting scenarios across Lists and TextFormatting operation groups
  • Generated client configstspconfig.yaml + .gitignore + src/index.d.ts for client-doc and response-as-bool paths

Known emitter limitation

@responseAsBool deserialization is broken: the generated deserializer returns result.body (always undefined for HEAD responses) instead of deriving the boolean from the status code. Boolean value assertions are omitted from the ResponseAsBool tests; the API calls themselves pass. Root fix requires the emitter to emit return { body: result.status === "204" } in the generated deserializer.

… Documentation_TextFormatting

Agent-Logs-Url: https://github.com/Azure/autorest.typescript/sessions/9e830c96-7264-4433-a528-4a8e7a2b55b1

Co-authored-by: v-jiaodi <80496810+v-jiaodi@users.noreply.github.com>
Copilot AI changed the title [WIP] Verify and implement spector tests for scenario groups Add spector integration tests for ClientDoc, ResponseAsBool, Documentation_Lists, and Documentation_TextFormatting May 6, 2026
Copilot AI requested a review from v-jiaodi May 6, 2026 02:24
@v-jiaodi v-jiaodi marked this pull request as ready for review May 6, 2026 09:20
@v-jiaodi
Copy link
Copy Markdown
Member

v-jiaodi commented May 8, 2026

LGTM

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

Successfully merging this pull request may close these issues.

[Copilot] Verify and implement spector tests for 18 scenario groups

3 participants