Browse Source

[test] cypress: configurable master suite to support individual file tests

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/688/head
Raju Udava 3 years ago
parent
commit
43c6aa7225
  1. 17
      cypress/integration/test/masterSuite.js

17
cypress/integration/test/masterSuite.js

@ -1,8 +1,5 @@
// // For single file tests-
// let t0 = require('./explicitLogin')
// t0.genTest('rest', false)
let t0 = require('./explicitLogin')
let t00 = require('../common/00_pre_configurations')
let t0a = require('../common/0a_project_operations')
let t1a = require('../common/1a_table_operations')
@ -26,8 +23,18 @@ let t6a = require('../common/6a_audit')
let t6c = require('../common/6c_swagger_api')
let t6d = require('../common/6d_language_validation')
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1
const nocoTestSuite = (type, xcdb) => {
t00.genTest()
if (0 == executionMode) {
t0.genTest('rest', false)
} else {
t00.genTest()
}
t0a.genTest(type, xcdb)
t1a.genTest(type, xcdb)
t1b.genTest(type, xcdb)

Loading…
Cancel
Save