Browse Source

[test] cypress: project creation segregation for parallel run

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/697/head
Raju Udava 3 years ago
parent
commit
976b45f768
  1. 2
      cypress.json
  2. 16
      cypress/integration/common/00_pre_configurations.js

2
cypress.json

@ -13,7 +13,7 @@
"screenshotOnRunFailure": false,
"numTestsKeptInMemory": 0,
"env": {
"testMode": "extREST,extGQL"
"testMode": "extREST.extGQL"
},
"supportedOptionsForTestModes": [
"extGQL",

16
cypress/integration/common/00_pre_configurations.js

@ -26,10 +26,18 @@ export const genTest = (type, xcdb) => {
})
}
if (isTestSuiteActive('rest', true)) createProject(staticProjects.sampleREST)
if (isTestSuiteActive('graphql', true)) createProject(staticProjects.sampleGQL)
if (isTestSuiteActive('rest', false)) createProject(staticProjects.externalREST)
if (isTestSuiteActive('graphql', false)) createProject(staticProjects.externalGQL)
// if (isTestSuiteActive('rest', true)) createProject(staticProjects.sampleREST)
// if (isTestSuiteActive('graphql', true)) createProject(staticProjects.sampleGQL)
// if (isTestSuiteActive('rest', false)) createProject(staticProjects.externalREST)
// if (isTestSuiteActive('graphql', false)) createProject(staticProjects.externalGQL)
// tbd: add case for xcdb
if ('rest' == type) {
createProject(staticProjects.externalREST)
}
else if ('graphql' == type) {
createProject(staticProjects.externalGQL)
}
})
// describe('Static user creations (different roles)', () => {

Loading…
Cancel
Save