bootstrap/bootstrapAll not executed when using run-workers parameter
See original GitHub issueWhat are you trying to achieve?
I want to run my tests in parallel with run-workers
but the functions i have defined in a bootstrap/bootstrapAll file are not executed beforehand and therefor all my tests are failing.
What do you get instead?
When i run codeceptjs run-workers 3 -c codecept.conf.js
there is no output from the console.log inside the bootstrap/bootstrapAll functions. (so they are not executed at all)
Additional info: when i run codeceptjs run-multiple parallel -c codecept.conf.js
with the same bootstrap file + codeceptjs config, the output from the console.log in the bootstrap file is printed correct.
Provide bootstrap & codecept.conf.js file content:
// bootstrap file:
module.exports = {
bootstrapAll: async function(done) {
console.log("within bootstrapAll");
done();
},
bootstrap: async function(done) {
console.log("within bootstrap");
done();
}
};
//codecept.conf.js (relevant part):
bootstrapAll: "../bootstrap/prepareDataResources.js",
bootstrap: "../bootstrap/prepareDataResources.js",
multiple: {
parallel: {
chunks: 20
}
},
Details
- CodeceptJS version: tested with 2.4.3 & 2.6.0
- NodeJS Version: v12.10.0
- Operating System: MacOS Catalina (10.15.3)
- Configuration file: see above
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
Execution Parameters does not display label · Issue #4890
Issue Summary: When the pipeline is executed, the label of the parameter is not displayed. Environment: spinnaker version: 1.16.0.
Read more >Kotlin: function parameters sent in but not executed?
I have the following code that pass in an Integer and two functions. choseNavigation(childPos, {Toast.makeText(ctx, "hello1", Toast.LENGTH_SHORT) ...
Read more >Examples of the COND parameter - IBM
PROCSTP1 is the first step in the job because of the RESTART specification, and the COND parameter test is not valid because no...
Read more >if we dont use callback parameter for oncelledit i... - ServiceNow
Hi,. callback: a callback that continues the execution of any other related cell edit scripts. If true is passed as a parameter, ...
Read more >Execution Model — Luigi 2.8.13 documentation - Read the Docs
The most important aspect is that no execution is transferred. When you run a Luigi workflow, the worker schedules all tasks, and also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chwolf the bootstrap and teardown are called when I ran with
--verbose
@PeterNgTr sorry, i did not think about providing a repo - which would it make easier to investigate… i will create a repo when i find some time. Thanks