在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Azure/autorest.testserver开源软件地址:https://github.com/Azure/autorest.testserver开源编程语言:JavaScript 68.3%开源软件介绍:Test server V2Requirements
Recommended:
Usage# Start testserver
autorest-testserver run
# Start testserver at given port
autorest-testserver run --port=<port>
# Start testserver without reseting the coverage. This can be used when you are running the test server multiple times to get the full coverage.
autorest-testserver run --appendCoverage
# Stop testserver
autorest-testserver stop
# Stop testserver running at the given port
autorest-testserver stop --port=<port>
# Sepecify the coverage directory
autorest-testserver run --coverageDirectory=<path> Coverage uploadUpload the coverage produce by the autorest testserver. autorest-testserver-coverage publish \
--coverageDirectory=<path> \
--repo=<repo> \
--ref=<path> \
--githubToken=<ghToken> \
--azStorageAccount=<account> \
--azStorageAccessKey=<azStorageKey>
Clear coverage folderClear the coverage folder. autorest-testserver-coverage clear [--coverageDirectory=<path>] Developping# Install dependencies
npm install
# Start for dev: Will start the server and automatically restart in case there is changes in the files.
npm run start:dev
# Start for running: Will build and start the server
npm run start
# Format all the files(Required for CI). Use prettier vscode extension(or other editor prettier integration) for on save formatting.
npm run format Writing mock apisSee docs |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论