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

Consider having CadlRanchTestAttribute dynamically detect generation state #4017

Closed
m-nash opened this issue Jul 25, 2024 · 0 comments · Fixed by #4059
Closed

Consider having CadlRanchTestAttribute dynamically detect generation state #4017

m-nash opened this issue Jul 25, 2024 · 0 comments · Fixed by #4059
Assignees
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Comments

@m-nash
Copy link
Member

m-nash commented Jul 25, 2024

Right now CadlRanchTestAttribute will ignore the test based on the run settings file used. We might be able to have this dynamically check the code the current test would run against to see if it is stubbed using reflection / rosyln.

If we can do this then the test would dynamically flip and remove the need to manually swap the runsettings to debug.

@m-nash m-nash added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jul 25, 2024
@m-nash m-nash self-assigned this Jul 31, 2024
github-merge-queue bot pushed a commit that referenced this issue Jul 31, 2024
Follow up to #4017 because
linux has a different ordering than windows when it comes to
Directory.GetFiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant