Merge branch 'master' of https://github.com/azure/autorest.modelerfour
This commit is contained in:
Коммит
f1ca27b53b
|
@ -371,4 +371,7 @@ package-deps.json
|
|||
/tests/output
|
||||
/tests/before
|
||||
/tests/new
|
||||
!entrypoints/**
|
||||
!entrypoints/**
|
||||
|
||||
# Code generation output for regression tests
|
||||
modelerfour/test/regression
|
||||
|
|
|
@ -0,0 +1,84 @@
|
|||
# This file describes the set of languages and specs that will have generated
|
||||
# output comparisons run to check for regressions in @autorest/modelerfour.
|
||||
|
||||
debug: false
|
||||
specs:
|
||||
- specRootPath: ../modelerfour/node_modules/@microsoft.azure/autorest.testserver/swagger
|
||||
specPaths:
|
||||
- additionalProperties.json
|
||||
- azure-parameter-grouping.json
|
||||
- azure-report.json
|
||||
- azure-resource-x.json
|
||||
- azure-resource.json
|
||||
- azure-special-properties.json
|
||||
- body-array.json
|
||||
- body-boolean.json
|
||||
- body-boolean.quirks.json
|
||||
- body-byte.json
|
||||
- body-complex.json
|
||||
- body-date.json
|
||||
- body-datetime-rfc1123.json
|
||||
- body-datetime.json
|
||||
- body-duration.json
|
||||
- body-dictionary.json
|
||||
- body-file.json
|
||||
- body-formdata-urlencoded.json
|
||||
- body-formdata.json
|
||||
- body-integer.json
|
||||
- body-number.json
|
||||
- body-number.quirks.json
|
||||
- body-string.json
|
||||
- body-string.quirks.json
|
||||
- complex-model.json
|
||||
- custom-baseUrl.json
|
||||
- custom-baseUrl-more-options.json
|
||||
- custom-baseUrl-paging.json
|
||||
- extensible-enums-swagger.json
|
||||
- head-exceptions.json
|
||||
- head.json
|
||||
- header.json
|
||||
- httpInfrastructure.json
|
||||
- httpInfrastructure.quirks.json
|
||||
- lro.json
|
||||
- model-flattening.json
|
||||
- paging.json
|
||||
- parameter-flattening.json
|
||||
- report.json
|
||||
- required-optional.json
|
||||
- storage.json
|
||||
- subscriptionId-apiVersion.json
|
||||
- url-multi-collectionFormat.json
|
||||
- url.json
|
||||
- validation.json
|
||||
- xml-service.json
|
||||
- xms-error-responses.json
|
||||
languages:
|
||||
- language: typescript
|
||||
excludeSpecs:
|
||||
# The following specs currently crash the v3 TypeScript generator
|
||||
- additionalProperties.json
|
||||
- azure-parameter-grouping.json
|
||||
- azure-special-properties.json
|
||||
- body-array.json
|
||||
- body-dictionary.json
|
||||
- body-formdata-urlencoded.json
|
||||
- body-formdata.json
|
||||
- custom-baseUrl-paging.json
|
||||
- header.json
|
||||
- lro.json
|
||||
- model-flattening.json
|
||||
- paging.json
|
||||
- required-optional.json
|
||||
outputPath: ../modelerfour/test/regression/typescript
|
||||
oldArgs:
|
||||
- --v3
|
||||
- --version:3.0.6200
|
||||
- --package-name:test-package
|
||||
- --use:@autorest/modelerfour@4.5.175
|
||||
- --use:@autorest/typescript@0.1.0-dev.20200203.1
|
||||
newArgs:
|
||||
- --v3
|
||||
- --version:3.0.6200
|
||||
- --package-name:test-package
|
||||
- --use:../modelerfour
|
||||
- --use:@autorest/typescript@0.1.0-dev.20200203.1
|
|
@ -28,64 +28,8 @@ steps:
|
|||
|
||||
displayName: 'Rush install, build and test'
|
||||
|
||||
- script : |
|
||||
npm install -g @autorest/compare
|
||||
- script: npm install -g @autorest/compare@~0.2.0
|
||||
displayName: Install autorest-compare
|
||||
|
||||
- script : |
|
||||
export AUTOREST_TYPESCRIPT=@autorest/typescript@0.1.0-dev.20200203.1
|
||||
autorest-compare --typescript \
|
||||
--spec-path:azure-report.json \
|
||||
--spec-path:azure-resource-x.json \
|
||||
--spec-path:azure-resource.json \
|
||||
--spec-path:body-boolean.json \
|
||||
--spec-path:body-boolean.quirks.json \
|
||||
--spec-path:body-byte.json \
|
||||
--spec-path:body-complex.json \
|
||||
--spec-path:body-date.json \
|
||||
--spec-path:body-datetime-rfc1123.json \
|
||||
--spec-path:body-datetime.json \
|
||||
--spec-path:body-duration.json \
|
||||
--spec-path:body-file.json \
|
||||
--spec-path:body-integer.json \
|
||||
--spec-path:body-number.json \
|
||||
--spec-path:body-number.quirks.json \
|
||||
--spec-path:body-string.json \
|
||||
--spec-path:body-string.quirks.json \
|
||||
--spec-path:complex-model.json \
|
||||
--spec-path:custom-baseUrl-more-options.json \
|
||||
--spec-path:custom-baseUrl.json \
|
||||
--spec-path:extensible-enums-swagger.json \
|
||||
--spec-path:head-exceptions.json \
|
||||
--spec-path:head.json \
|
||||
--spec-path:httpInfrastructure.json \
|
||||
--spec-path:httpInfrastructure.quirks.json \
|
||||
--spec-path:parameter-flattening.json \
|
||||
--spec-path:report.json \
|
||||
--spec-path:storage.json \
|
||||
--spec-path:subscriptionId-apiVersion.json \
|
||||
--spec-path:url-multi-collectionFormat.json \
|
||||
--spec-path:url.json \
|
||||
--spec-path:validation.json \
|
||||
--spec-path:xml-service.json \
|
||||
--spec-path:xms-error-responses.json \
|
||||
--spec-root-path:./modelerfour/node_modules/@microsoft.azure/autorest.testserver/__files/ \
|
||||
--output-path:./generated/typescript/ \
|
||||
--compare-old --v3 --package-name:test-package --version=3.0.6200 --use:@autorest/modelerfour@4.5.175 --use:$AUTOREST_TYPESCRIPT \
|
||||
--compare-new --v3 --package-name:test-package --version:3.0.6200 --use:./modelerfour --use:$AUTOREST_TYPESCRIPT
|
||||
|
||||
# Disabled due to errors in the TypeScript generator
|
||||
# --spec-path:additionalProperties.json \
|
||||
# --spec-path:azure-parameter-grouping.json \
|
||||
# --spec-path:azure-special-properties.json \
|
||||
# --spec-path:body-array.json \
|
||||
# --spec-path:body-dictionary.json \
|
||||
# --spec-path:body-formdata-urlencoded.json \
|
||||
# --spec-path:body-formdata.json \
|
||||
# --spec-path:custom-baseUrl-paging.json \
|
||||
# --spec-path:header.json \
|
||||
# --spec-path:lro.json \
|
||||
# --spec-path:model-flattening.json \
|
||||
# --spec-path:paging.json \
|
||||
# --spec-path:required-optional.json \
|
||||
- script: autorest-compare --compare:.scripts/regression-compare.yaml
|
||||
displayName: Regression Test - @autorest/typescript
|
||||
|
|
|
@ -16,4 +16,4 @@
|
|||
"node_modules",
|
||||
"**/*.d.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче