Skip to content

Commit 596c3f6

Browse files
committed
fixx bdd tests on github actions
1 parent a742b56 commit 596c3f6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/checks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
ports:
5959
- 3306:3306
6060
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
61+
redis:
62+
image: redis:7-alpine
63+
ports:
64+
- 6379:6379
65+
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
6166
steps:
6267
- name: Checkout repository
6368
uses: actions/checkout@v3

test/bdd/steps/hooks.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ process.env.NODE_ENV = NODE_ENVIRONMENTS.TEST;
1010

1111
BeforeAll(() => {});
1212

13-
Before(function beforeMethod(testCase, done) {
13+
Before(function beforeMethod(testCase) {
1414
this.logger = console;
1515
this.logger.log('\n🟡 Starting scenario:', testCase.pickle.name);
1616
// Initialize variables
@@ -24,10 +24,9 @@ Before(function beforeMethod(testCase, done) {
2424
fs.mkdirSync(logDir, { recursive: true });
2525
this.state.scenarionLogDir = logDir;
2626
this.logger.log('📁 Scenario logs:', logDir);
27-
done();
2827
});
2928

30-
After(async function afterMethod(testCase, done) {
29+
After(async function afterMethod(testCase) {
3130
const tripleStoreConfiguration = [];
3231
const databaseNames = [];
3332
const promises = [];
@@ -105,7 +104,6 @@ After(async function afterMethod(testCase, done) {
105104
this.logger.log(`📄 Location: ${testCase.gherkinDocument.uri}:${testCase.gherkinDocument.feature.location.line}`);
106105
this.logger.log(`🟢 Status: ${testCase.result.status}`);
107106
this.logger.log(`⏱ Duration: ${testCase.result.duration} milliseconds\n`);
108-
done();
109107
});
110108

111109
AfterAll(async () => {});

0 commit comments

Comments
 (0)