Skip to content

Commit bb7412c

Browse files
authored
Merge pull request #143 from UlisesGascon/feature-e2e-tests
Feature: e2e tests
2 parents 5d351b0 + 4e55077 commit bb7412c

24 files changed

+1840
-65
lines changed

artifacts/db-reset.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function parseResponse(err, res, comm) {
4444
console.log("ERROR:");
4545
console.log(comm);
4646
console.log(JSON.stringify(err));
47-
4847
process.exit(1);
4948
}
5049
console.log(comm);
@@ -59,6 +58,7 @@ MongoClient.connect(config.db, function(err, db) {
5958
if (err) {
6059
console.log("ERROR: connect");
6160
console.log(JSON.stringify(err));
61+
process.exit(1);
6262
}
6363
console.log("Connected to the database: " + config.db);
6464

@@ -117,6 +117,7 @@ MongoClient.connect(config.db, function(err, db) {
117117

118118
allocationsCol.insertMany(finalAllocations, function(err, data) {
119119
parseResponse(err, data, "allocations.insertMany");
120+
console.log("Database reset performed successfully")
120121
process.exit(0);
121122
});
122123

cypress.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"fixturesFolder": "test/e2e/fixtures",
3+
"integrationFolder": "test/e2e/integration",
4+
"pluginsFile": "test/e2e/plugins/index.js",
5+
"screenshotsFolder": "test/e2e/screenshots",
6+
"videosFolder": "test/e2e/videos",
7+
"supportFile": "test/e2e/support/index.js"
8+
}

0 commit comments

Comments
 (0)