Skip to content

Test Snapshots for Ask User has three folders #314

@brunoborges

Description

@brunoborges

We see the following structure:

target/copilot-sdk/test/snapshots/
├── ask-user
│   ├── should_handle_freeform_user_input_response.yaml
│   ├── should_invoke_user_input_handler_when_model_uses_ask_user_tool.yaml
│   └── should_receive_choices_in_user_input_request.yaml
├── ask_user
│   ├── handle_freeform_user_input_response.yaml
│   ├── invoke_user_input_handler_when_model_uses_ask_user_tool.yaml
│   └── receive_choices_in_user_input_request.yaml
└── askuser
    ├── should_handle_freeform_user_input_response.yaml
    ├── should_invoke_user_input_handler_when_model_uses_ask_user_tool.yaml
    └── should_receive_choices_in_user_input_request.yaml

Asking Copilot, it says the following:

SDK Test File Snapshot Folder
Node.js ask-user.test.ts ask-user/
Python test_ask_user.py ask_user/
Go ask_user_test.go ask_user/
.NET AskUserTests.cs (explicit: "ask-user") ask-user/

The folder name is derived from the test file name:

  • Node.js: File ask-user.test.ts → strips .test.ts  ask-user/
  • Python: File test_ask_user.py → strips test_ prefix and .py  ask_user/
  • Go: File ask_user_test.go → strips _test.go  ask_user/
  • .NET: Explicitly passes "ask-user" to the base class

The askuser/ folder (no separator) appears to be unused or legacy.



Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions