wdio-mediawiki 6.4.0 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/MwApiHttpClient.js +1 -1
- package/package.json +1 -1
- package/wdio-defaults.conf.js +3 -1
package/api/MwApiHttpClient.js
CHANGED
|
@@ -49,7 +49,7 @@ export class MwApiHttpClient {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
if ( !response.ok ) {
|
|
52
|
-
console.error( `[API] HTTP ${ response.status }: ${ response.statusText }
|
|
52
|
+
console.error( `[API] HTTP ${ response.status }: ${ response.statusText }`, text );
|
|
53
53
|
throw new Error( `HTTP ${ response.status }` );
|
|
54
54
|
}
|
|
55
55
|
|
package/package.json
CHANGED
package/wdio-defaults.conf.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
let ffmpeg;
|
|
12
|
+
import os from 'os';
|
|
12
13
|
import path from 'path';
|
|
13
14
|
import { getChromeOptions } from './chromeOptions.js';
|
|
14
15
|
import { setupProcessHandlers } from './processHandlers.js';
|
|
@@ -50,7 +51,7 @@ export const config = {
|
|
|
50
51
|
// Define the different browser configurations to use ("capabilities") here.
|
|
51
52
|
// ============
|
|
52
53
|
|
|
53
|
-
maxInstances: process.env.CI ?
|
|
54
|
+
maxInstances: process.env.CI ? Math.floor( os.cpus().length * 0.75 ) : 1,
|
|
54
55
|
// Make sure wdio do not try to start XVFB (we do that ourselves when needed)
|
|
55
56
|
autoXvfb: false,
|
|
56
57
|
capabilities: [ {
|
|
@@ -159,6 +160,7 @@ export const config = {
|
|
|
159
160
|
onPrepare: function ( wdioConfig, capabilities ) {
|
|
160
161
|
console.log( `Run test targeting ${ wdioConfig.baseUrl }` );
|
|
161
162
|
logSystemInformation();
|
|
163
|
+
console.log( `[Configuration] maxInstances ${ wdioConfig.maxInstances } (max tests running in parallel) ` );
|
|
162
164
|
|
|
163
165
|
const { maxInstances, useBrowserHeadless, recordVideo } = wdioConfig;
|
|
164
166
|
|