Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateCI - Functional tests - Added testCafe quarantineMode parameter and applied it for the Scheduler #11640

Merged
merged 3 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ matrix:
- { TARGET: test, BROWSER: firefox, JQUERY: true, CONSTEL: ui.scheduler }
- { TARGET: test, BROWSER: firefox, JQUERY: true, CONSTEL: viz }
- { TARGET: test_functional, COMPONENT: dataGrid }
- { TARGET: test_functional, COMPONENT: scheduler }
- { TARGET: test_functional, COMPONENT: scheduler, QUARANTINE_MODE: true }
- { TARGET: test_functional, COMPONENT: editors }
- { TARGET: test_functional, COMPONENT: navigation }
- { TARGET: test_themebuilder }
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
- TARGET=test BROWSER=firefox JQUERY=true CONSTEL=ui.scheduler
- TARGET=test BROWSER=firefox JQUERY=true CONSTEL=viz
- TARGET=test_functional COMPONENT=dataGrid
- TARGET=test_functional COMPONENT=scheduler
- TARGET=test_functional COMPONENT=scheduler QUARANTINE_MODE=true
- TARGET=test_functional COMPONENT=editors
- TARGET=test_functional COMPONENT=navigation
- TARGET=test_themebuilder
Expand Down
5 changes: 3 additions & 2 deletions docker-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ function run_test_functional {
npm i
npm run build

local args="--browsers chrome:headless";
[ "$COMPONENT" ] && args="$args --componentFolder $COMPONENT";
local args="--browsers=chrome:headless";
[ -n "$COMPONENT" ] && args="$args --componentFolder=$COMPONENT";
[ -n "$QUARANTINE_MODE" ] && args="$args --quarantineMode=true";

npm run test-functional -- $args
}
Expand Down
2 changes: 1 addition & 1 deletion shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
- TARGET=test BROWSER=firefox JQUERY=true CONSTEL=ui.scheduler
- TARGET=test BROWSER=firefox JQUERY=true CONSTEL=viz
- TARGET=test_functional COMPONENT=dataGrid
- TARGET=test_functional COMPONENT=scheduler
- TARGET=test_functional COMPONENT=scheduler QUARANTINE_MODE=true
- TARGET=test_functional COMPONENT=editors
- TARGET=test_functional COMPONENT=navigation
- TARGET=test_themebuilder
Expand Down
5 changes: 3 additions & 2 deletions testing/functional/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ createTestCafe('localhost', 1437, 1438)
}

return runner.run({
quarantineMode: false
quarantineMode: args.quarantineMode
});
})
.then(failedCount => {
Expand All @@ -38,7 +38,8 @@ function getArgs() {
default: {
browsers: 'chrome',
test: '',
componentFolder: ''
componentFolder: '',
quarantineMode: false
}
});
}