Skip to content

Commit

Permalink
Merge pull request #120 from mathworks/jdhameli-execution-tests
Browse files Browse the repository at this point in the history
Execution tests
  • Loading branch information
jdhameli authored Mar 26, 2024
2 parents 060dd58 + 78462ec commit 4aa3d35
Show file tree
Hide file tree
Showing 20 changed files with 2,525 additions and 115 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Run extension tests nightly on vscode insiders version
# Run smoke tests nightly on vscode insiders version

name: test-nightly

Expand Down Expand Up @@ -37,9 +37,10 @@ jobs:
shell: bash
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
- name: Run tests
run: npm run test-insiders
run: npm run test-smoke
env:
MLM_WEB_LICENSE: true
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
DISPLAY: ":17.0"
VSCODE_VERSION: "insider"
15 changes: 13 additions & 2 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,21 @@ jobs:
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
shell: bash
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
- name: Run tests
run: npm run test
- name: Package vsix
run: npm run package
- name: npm install
run: npm install
- name: Run Smoke tests
run: npm run test-smoke
env:
MLM_WEB_LICENSE: true
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
DISPLAY: ":17.0"
- name: Run UI tests
run: npm run test-ui
env:
MLM_WEB_LICENSE: true
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
DISPLAY: ":17.0"
19 changes: 16 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
test-smoke:
name: smoke-${{ matrix.version }}-${{ matrix.os }}
name: ${{ matrix.version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -31,14 +31,27 @@ jobs:
release: ${{ matrix.version }}
- name: Setup node
uses: actions/setup-node@v4
with:
"node-version": 18.x
- name: npm clean install
run: npm ci
- name: Start Xvfb
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
shell: bash
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
- name: Run tests
run: npm run test
- name: Package vsix
run: npm run package
- name: npm install
run: npm install
- name: Run UI tests
run: npm run test-ui
env:
MLM_WEB_LICENSE: true
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
DISPLAY: ":17.0"
- name: Run Smoke tests
run: npm run test-smoke
env:
MLM_WEB_LICENSE: true
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
Expand Down
Loading

0 comments on commit 4aa3d35

Please sign in to comment.