Skip to content

Commit

Permalink
add test metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjduffy committed Sep 7, 2022
1 parent 8fc8e0a commit 63aa59a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ jobs:
PROJECT_PATH: ${{ steps.setup_test_project.outputs.test_project_path }}
REDWOOD_DISABLE_TELEMETRY: 1
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: Smoke test / ${{ matrix.os }} / node ${{ matrix.node-version }} latest
RECORD_REPLAY_TEST_METRICS: 1

- name: Run `rw info`
run: |
Expand Down
13 changes: 13 additions & 0 deletions local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# clone git@github.com:replayio/redwood.git
# Once after cloning
yarn

# At least once to build a test project
export PROJECT_PATH=$(mktemp -d)
yarn build:test-project --ts --link $PROJECT_PATH
yarn rw build

# run the tests. It expects PROJECT_PATH to be se
# so be sure to set it inline if you've built a
# test project in a "permanent" place
(cd ./tasks/smoke-test && npx -y playwright test --project replay-firefox --reporter @replayio/playwright/reporter,line)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@babel/runtime-corejs3": "7.18.9",
"@nrwl/nx-cloud": "14.3.0",
"@playwright/test": "1.19.2",
"@replayio/playwright": "0.2.22",
"@replayio/playwright": "0.2.26",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "8.0.1",
Expand Down
26 changes: 19 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7331,21 +7331,22 @@ __metadata:
languageName: node
linkType: hard

"@replayio/playwright@npm:0.2.22":
version: 0.2.22
resolution: "@replayio/playwright@npm:0.2.22"
"@replayio/playwright@npm:0.2.26":
version: 0.2.26
resolution: "@replayio/playwright@npm:0.2.26"
dependencies:
"@replayio/replay": ^0.9.2
"@replayio/replay": ^0.9.5
"@replayio/test-utils": ^0.1.2
uuid: ^8.3.2
peerDependencies:
"@playwright/test": 1.19.x
bin:
replayio-playwright: bin/replayio-playwright.js
checksum: ba573c69ee09a62a9c7612feaa1764fbdc43ba4b365701da72823fad530328425394fee31e8ade52b123c8ecd7e776e56ac688cebb6f560a039840743eb1b291
checksum: 24e5529d84105cc8c047ab1ad4ecdea9ff68ab8e69a067e08232256426e8cc8f6f8df90bb3d1646f7215a9febd18a154fda0d73bca53d5e582c7d1c70b92857f
languageName: node
linkType: hard

"@replayio/replay@npm:^0.9.2":
"@replayio/replay@npm:^0.9.5":
version: 0.9.5
resolution: "@replayio/replay@npm:0.9.5"
dependencies:
Expand Down Expand Up @@ -7375,6 +7376,17 @@ __metadata:
languageName: node
linkType: hard

"@replayio/test-utils@npm:^0.1.2":
version: 0.1.2
resolution: "@replayio/test-utils@npm:0.1.2"
dependencies:
"@replayio/replay": ^0.9.5
node-fetch: ^2.6.7
uuid: ^8.3.2
checksum: 372abec60189491a197aac3c71310508438ef674cd7396b2ff318f83e70d91910c4599e089ce32842b8d9689c5c04eec414957e251e108b31a40fd61f1909266
languageName: node
linkType: hard

"@samverschueren/stream-to-observable@npm:^0.3.0":
version: 0.3.1
resolution: "@samverschueren/stream-to-observable@npm:0.3.1"
Expand Down Expand Up @@ -27977,7 +27989,7 @@ __metadata:
"@babel/runtime-corejs3": 7.18.9
"@nrwl/nx-cloud": 14.3.0
"@playwright/test": 1.19.2
"@replayio/playwright": 0.2.22
"@replayio/playwright": 0.2.26
"@testing-library/jest-dom": 5.16.5
"@testing-library/react": 12.1.5
"@testing-library/react-hooks": 8.0.1
Expand Down

0 comments on commit 63aa59a

Please sign in to comment.