Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Nov 28, 2024
1 parent bd05785 commit 27240a5
Show file tree
Hide file tree
Showing 8 changed files with 5,136 additions and 5 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -29,3 +29,32 @@ jobs:

- name: Test
run: npm test

integration-test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Link
run: npm link

- name: Install idb
run: brew install fb-idb

- name: Test
working-directory: tests/integration
run: |
npm ci
npm link testcafe-browser-provider-ios
npx testcafe --list-browsers ios
npx testcafe "ios:iPhone 15 Pro Max:iOS 17.0" tests/
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default [
},
},
{
files: ["test/**/*.js"],
files: ["tests/unit/**/*.js"],
plugins: {
mocha,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "prettier --check '**/*.{js,ts,mjs,cjs}' && eslint .",
"fmt": "prettier --write '**/*.{js,ts,mjs,cjs}'",
"prepare": "husky",
"test": "mocha"
"test": "mocha tests/unit/"
},
"keywords": [
"testcafe",
Expand Down
Loading

0 comments on commit 27240a5

Please sign in to comment.