mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
correct spec pattern path in cypress config
This commit is contained in:
parent
a93500488a
commit
4c565e92c5
30
.github/workflows/test-e2e.yml
vendored
30
.github/workflows/test-e2e.yml
vendored
@ -5,26 +5,26 @@ jobs:
|
|||||||
fullstack_tests:
|
fullstack_tests:
|
||||||
name: Fullstack tests
|
name: Fullstack tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
# env:
|
||||||
jobs: 8
|
# jobs: 8
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
# run copies of the current job in parallel
|
# # run copies of the current job in parallel
|
||||||
job: [1, 2, 3, 4, 5, 6, 7, 8]
|
# job: [1, 2, 3, 4, 5, 6, 7, 8]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: webapp | copy env file
|
# - name: webapp | copy env file
|
||||||
run: cp webapp/.env.template webapp/.env
|
# run: cp webapp/.env.template webapp/.env
|
||||||
|
|
||||||
- name: backend | copy env file
|
# - name: backend | copy env file
|
||||||
run: cp backend/.env.template backend/.env
|
# run: cp backend/.env.template backend/.env
|
||||||
|
|
||||||
- name: boot up test system | docker-compose
|
# - name: boot up test system | docker-compose
|
||||||
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp neo4j backend
|
# run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp neo4j backend
|
||||||
|
|
||||||
- name: End-to-end tests | prepare
|
- name: Full stack tests | prepare
|
||||||
run: |
|
run: |
|
||||||
wget --no-verbose -O /opt/cucumber-json-formatter "https://github.com/cucumber/json-formatter/releases/download/v19.0.0/cucumber-json-formatter-linux-386"
|
wget --no-verbose -O /opt/cucumber-json-formatter "https://github.com/cucumber/json-formatter/releases/download/v19.0.0/cucumber-json-formatter-linux-386"
|
||||||
chmod +x /opt/cucumber-json-formatter
|
chmod +x /opt/cucumber-json-formatter
|
||||||
@ -35,9 +35,9 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: cypress | Fullstack tests
|
- name: Full stack tests | run tests
|
||||||
id: e2e-tests
|
id: e2e-tests
|
||||||
run: yarn run cypress:run --spec $(cypress/parallel-features.sh ${{ matrix.job }} ${{ env.jobs }} )
|
run: yarn run cypress:run --spec cypress/e2e/Internationalization.feature,cypress/e2e/Post.Comment.feature
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# UPLOAD SCREENSHOTS - IF TESTS FAIL #####################################
|
# UPLOAD SCREENSHOTS - IF TESTS FAIL #####################################
|
||||||
|
|||||||
@ -22,6 +22,12 @@ async function setupNodeEvents(on, config) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
on("after:run", (results) => {
|
||||||
|
if (results) {
|
||||||
|
console.log(results.status);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user