fix detox report (#6115)

This commit is contained in:
Saturnino Abril
2022-04-01 20:16:44 +08:00
committed by GitHub
parent 7e09e5dc05
commit b7d04afa21
3 changed files with 36 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
{
"testRunner": "jest --forceExit --detectOpenHandles",
"runnerConfig": "e2e/config.json",
"runnerConfig": "e2e/config.js",
"configurations": {
"ios.sim.debug": {
"binaryPath": "../ios/Build/Products/Debug-iphonesimulator/Mattermost.app",

35
detox/e2e/config.js Normal file
View File

@@ -0,0 +1,35 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const platform = process.env.IOS ? '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',
},
};

View File

@@ -1,16 +0,0 @@
{
"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"],
"verbose": true,
"moduleNameMapper": {
"^@support/(.*)": "<rootDir>/support/$1"
}
}