Deprecate old testing framework in favor of createTester#10964
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>
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: |
|
@copilot fix build
|
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Fixed in the latest commit — removed the |
|
❌ There is undocummented changes. Run The following packages have changes but are not documented.
The following packages have already been documented:
Show changes
|
|
@copilot fix lint issues |
…mentation files Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
... Fixed — added |
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.