Skip to content

New testing framework#7151

Merged
timotheeguerin merged 62 commits intomicrosoft:mainfrom
timotheeguerin:tester-v2
Jun 24, 2025
Merged

New testing framework#7151
timotheeguerin merged 62 commits intomicrosoft:mainfrom
timotheeguerin:tester-v2

Conversation

@timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Apr 28, 2025

Tentative improvement of the testing framework for TypeSpec using the idea here https://gist.github.com/timotheeguerin/e218fd2079fb331db31bc0a5a70dc539

Todo:

  • Add tests
  • Figure out the program on the static function
  • Better type collection
  • Add doc comments on all the types
  • Check experiences for emitters(calling $onEmit)
  • Double check the async fs contruction if we can have a better pattern?
  • Generalize Filesystem(add raw file vs js file)
  • Emitter tester should have the same pipe functions as the base tester

@github-actions
Copy link
Contributor

github-actions bot commented Apr 28, 2025

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/http
  • @typespec/openapi
  • @typespec/openapi3
  • @typespec/rest
  • @typespec/sse
  • @typespec/streams
  • @typespec/versioning
  • @typespec/xml
Show changes

@typespec/compiler - feature ✏️

[API] Addition of a new testing framework. See https://typespec.io/docs/extending-typespec/testing

@typespec/http - internal ✏️

Migrated to new tester

@typespec/openapi - internal ✏️

Migrated to new tester

@typespec/openapi3 - internal ✏️

Migrated to new tester

@typespec/rest - internal ✏️

Migrated to new tester

@typespec/sse - internal ✏️

Migrated to new tester

@typespec/streams - internal ✏️

Migrated to new tester

@typespec/versioning - internal ✏️

Migrated to new tester

@typespec/xml - internal ✏️

Migrated to new tester

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 28, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin timotheeguerin changed the title [WIP] Tester v2 New testing framework Jun 3, 2025
@timotheeguerin timotheeguerin marked this pull request as ready for review June 3, 2025 16:29
Co-authored-by: Christopher Radek <14189820+chrisradek@users.noreply.github.com>
@timotheeguerin timotheeguerin added this pull request to the merge queue Jun 24, 2025
Merged via the queue into microsoft:main with commit e949a3d Jun 24, 2025
25 checks passed
@timotheeguerin timotheeguerin deleted the tester-v2 branch June 24, 2025 20:50
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.

3 participants