You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/test-utils/recorder/CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Release History
2
2
3
-
## 2.0.0 (Unreleased)
3
+
## 2.0.0 (2022-04-07)
4
+
5
+
Marks the first release of recorder v2. This project is a test utility that assits with testing the packages maintained at the Azure SDK for JavaScript repository by leveraging the unified out-of-process test proxy server. This is not intended for the public utilization.
## Azure @azure-tools/test-recorder-new library for JavaScript
2
2
3
-
This is an experimental tool to record and playback the tests in the JS repo by leveraging the unified out-of-process test proxy server. This library is still under construction.
4
-
Feature work is being tracked at [#15829](https://github.com/Azure/azure-sdk-for-js/issues/15829)
3
+
**Note: This project is a test utility that assits with testing the packages maintained at the Azure SDK for JavaScript repository. This is not intended for the public utilization.**
4
+
5
+
This tool helps to record and playback the tests in the JS repo by leveraging the unified out-of-process test proxy server.
5
6
6
7
## Resources
7
8
9
+
-[Migration guide to recorder v2 from v1](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/test-utils/recorder/MIGRATION.md)
8
10
-[Azure SDK Tools Test Proxy](https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy)
9
11
-[Using Test Proxy with docker container](https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy/docker#build-and-run)
10
12
11
-
## Running the test-proxy tool
13
+
## Running the tests along with the test-proxy tool
14
+
15
+
### With the `dev-tool` commands
16
+
17
+
- The following commands run the tests with the default configs, and concurrently runs the proxy tool in record/playback modes if it is not already active. Additionally, more options can be passeed to override the default configs.
18
+
-`dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'`
19
+
-`dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'`
20
+
-`dev-tool run test:browser`
21
+
Read more at [dev-tool commands #usage](https://github.com/Azure/azure-sdk-for-js/blob/main/common/tools/dev-tool/README.md#usage)
22
+
23
+
Follow the below two methods if you wish to run the proxy tool yourself without relying on the `dev-tool` commands.
12
24
13
25
### With the `docker run` command
14
26
@@ -18,8 +30,6 @@ Feature work is being tracked at [#15829](https://github.com/Azure/azure-sdk-for
18
30
19
31
Map the root directory of the azure-sdk-for-js repo to `/srv/testproxy` inside the container for an accurate location while generating recordings.
20
32
21
-
(Eventually, recorder will trigger this for you!)
22
-
23
33
Add `--add-host host.docker.internal:host-gateway` for linux to access host's network(to access `localhost`) through `host.docker.internal`.
24
34
Docker for Windows and Mac support `host.docker.internal` as a functioning alias for localhost.
25
35
@@ -37,18 +47,3 @@ Feature work is being tracked at [#15829](https://github.com/Azure/azure-sdk-for
0 commit comments