-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpfile.js
More file actions
33 lines (33 loc) · 1.15 KB
/
gulpfile.js
File metadata and controls
33 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const dotenv = require('dotenv')
dotenv.config() // https://github.com/motdotla/dotenv#what-happens-to-environment-variables-that-were-already-set
const gulp = require('gulp')
const qmTests = require('./ts/cypress-functions')
const s2c = require('./js/selenium-2-cypress')
gulp.task('selenium-to-cypress-ionic', function () {
s2c.convertSeleniumToCypress('cypress/integration/ionic',
'ghost_inspector/ionic-test-components-side-format.json')
})
gulp.task('selenium-to-cypress-api', function () {
s2c.convertSeleniumToCypress('cypress/integration/api',
'ghost_inspector/api-test-components-side-format.json')
})
gulp.task('cypress', function (cb) {
qmTests.runLastFailedCypressTest(function (err) {
if (err) throw err
qmTests.runCypressTests(cb)
})
})
gulp.task('cypress-one', function (cb) {
qmTests.runCypressTests(cb, 'physician')
})
gulp.task('cypress-failed', function (cb) {
qmTests.runLastFailedCypressTest(cb)
})
gulp.task('test-typescript-node', function (cb) {
const qm = require('./typescript-node-client/api')
let api = new qm.AppSettingsApi()
api.getAppSettings('medimodo').then(function (res) {
console.log(res)
cb()
})
})