Deprecate old testing framework in favor of createTester#10964
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
…ports - Mark createTestHost, createTestRunner as @deprecated in compiler testing - Mark createTestWrapper, createTestLibrary, findTestPackageRoot as @deprecated - Mark TestWrapperOptions, BasicTestRunner, TestHost, TypeSpecTestLibrary, TypeSpecTestLibraryInit, TestHostConfig, TestFiles, TestHostError as @deprecated - Add @deprecated to all XxxTestLibrary exports across packages: LibraryLinterTestLibrary, RestTestLibrary, HttpTestLibrary, SSETestLibrary, JsonSchemaTestLibrary, StreamsTestLibrary, VersioningTestLibrary, HttpServerJavaScriptTestLibrary, EventsTestLibrary, XmlTestLibrary, EmitterFrameworkTestLibrary, ProgramViewerTestLibrary, HttpClientJavascriptEmitterTestLibrary, HttpClientTestLibrary - Remove src/testing/index.ts from library-ts and emitter-ts templates - Add chronus deprecation changelog entry Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
@typespec/openapi and @typespec/openapi3 XxxTestLibrary exports were already @deprecated before this PR, so they don't need changelog entries. Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Deprecate old testing framework
Deprecate old testing framework in favor of Jun 11, 2026
createTester
@typespec/compiler
@typespec/emitter-framework
@typespec/events
@typespec/html-program-viewer
@typespec/http
@typespec/http-client
@typespec/http-client-js
@typespec/http-server-js
@typespec/json-schema
@typespec/library-linter
@typespec/rest
@typespec/sse
@typespec/streams
@typespec/versioning
@typespec/xml
commit: |
Member
|
@copilot fix build
|
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Contributor
Author
Fixed in the latest commit — removed the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Marks the legacy TypeSpec test host API as
@deprecatednow that all libraries have migrated to the newcreateTester-based framework.Deprecated APIs
@typespec/compiler/testingcreateTestHost,createTestRunner,createTestWrapper,createTestLibrary,findTestPackageRootTestHost,BasicTestRunner,TypeSpecTestLibrary,TypeSpecTestLibraryInit,TestHostConfig,TestFiles,TestHostError,TestWrapperOptionsPer-package
XxxTestLibraryexports — deprecated in:@typespec/http,@typespec/rest,@typespec/versioning,@typespec/json-schema,@typespec/xml,@typespec/events,@typespec/sse,@typespec/streams,@typespec/html-program-viewer,@typespec/library-linter, and several non-tracked packages.Migration
Templates
Removed
src/testing/index.tsfrom thelibrary-tsandemitter-tsscaffold templates — new projects no longer need to generate aXxxTestLibraryexport sincecreateTesteraccepts library names as strings directly.