* Detox/E2E: Scripts to run tests and save report * Change TM4J to ZEPHYR * Change AWS to DETOX_AWS * Removed send report on type release; moved incrementalDuration to getAllTests * Apply change requests * Fix import order * Fixed save_report comments; Fixed IOS checks * Added TEST_CYCLE_LINK_PREFIX to save_report comments * Re-order variables
35 lines
1 KiB
JavaScript
35 lines
1 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
const platform = process.env.IOS === 'true' ? 'ios' : 'android';
|
|
|
|
module.exports = {
|
|
setupFilesAfterEnv: ['./test/setup.ts'],
|
|
maxWorkers: 1,
|
|
testEnvironment: './environment',
|
|
testRunner: 'jest-circus/runner',
|
|
testTimeout: 120000,
|
|
testRegex: '\\.e2e\\.ts$',
|
|
transform: {
|
|
'\\.ts?$': 'ts-jest',
|
|
},
|
|
reporters: [
|
|
'detox/runners/jest/streamlineReporter',
|
|
['jest-junit', {
|
|
suiteName: 'Mobile App E2E with Detox and Jest',
|
|
outputDirectory: './artifacts',
|
|
outputName: `${platform}-junit.xml`,
|
|
uniqueOutputName: false,
|
|
}],
|
|
['jest-html-reporters', {
|
|
pageTitle: 'Mobile App E2E with Detox and Jest',
|
|
publicPath: './artifacts',
|
|
filename: `${platform}-report.html`,
|
|
expand: false,
|
|
}],
|
|
],
|
|
verbose: true,
|
|
moduleNameMapper: {
|
|
'^@support/(.*)': '<rootDir>/support/$1',
|
|
},
|
|
};
|