Skip to content

Commit

Permalink
Merge pull request #206 from galaxyproject/add_e2e_tests
Browse files Browse the repository at this point in the history
Add e2e tests
  • Loading branch information
davelopez authored Oct 1, 2022
2 parents 33cf711 + 7dbbd1a commit 91fbda2
Show file tree
Hide file tree
Showing 17 changed files with 1,860 additions and 68 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/client-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Extension CI

on:
push:
pull_request:
branches: [master]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: client

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python for local environment
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- name: Run integration tests
run: xvfb-run -a npm run test:e2e
if: runner.os == 'Linux'
- name: Run integration tests
run: npm run test:e2e
if: runner.os != 'Linux'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ venv/
ENV/
env.bak/
venv.bak/
glsenv

# Spyder project settings
.spyderproject
Expand All @@ -131,6 +132,7 @@ dmypy.json

# VS Code
.vscode/settings.json
.vscode-test

# Visual Studio
.vs
Expand Down
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@
"group": "GLS",
"order": 3
}
},
{
"name": "Debug e2e Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/client/out/tests/e2e/suite/index"
],
"outFiles": [
"${workspaceFolder}client/out/tests/e2e/**/*.js"
],
"preLaunchTask": {
"type": "npm",
"path": "client",
"script": "test-compile"
}
}
],
"compounds": [
Expand Down
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@
"problemMatcher": [],
"label": "npm: webpack",
"detail": "webpack --mode development"
},
{
"type": "npm",
"script": "watch",
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
"$ts-webpack-watch",
"$tslint-webpack-watch"
]
}
]
}
Loading

0 comments on commit 91fbda2

Please sign in to comment.