cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BTP CI/CD Additional Unit Tests Error

shakib2105
Explorer
0 Kudos

Hi All,

I am trying to add the OPA5 and QUnit testing to the BTP CI/CD Service by following this documentation ( Documentation)

I created the files exactly as mentioned in the document, but I am facing an error during the test phase. I am getting the below error in the test logs.

Here is my karma config:

module.exports = function (config) {
	config.set({
		frameworks: ["ui5"],
		browsers: ["ChromeHeadless"],
		browserConsoleLogOptions: {
			level: "error",
		},
		singleRun: true,
	});
};
Here are my devDependencies:
"devDependencies": {
		"@babel/cli": "^7.22.5",
		"@babel/core": "^7.22.5",
		"@babel/preset-env": "^7.22.5",
		"@babel/preset-typescript": "^7.22.5",
		"@sap/ui5-builder-webide-extension": "^1.1.9",
		"@sap/ux-ui5-tooling": "^1.10.1",
		"@sapui5/ts-types": "^1.115.1",
		"@types/jquery": "^3.5.16",
		"@types/openui5": "^1.115.1",
		"@types/qunit": "^2.19.6",
		"@ui5/cli": "^3.4.0",
		"@ui5/fs": "^3.0.4",
		"@ui5/logger": "^3.0.0",
		"babel-preset-transform-ui5": "^7.2.1",
		"chromedriver": "^114.0.2",
		"karma": "^5.0.4",
		"karma-chrome-launcher": "^3.1.0",
		"karma-coverage": "^2.0.2",
		"karma-ui5": "^2.1.0",
	},<br>

Anyone else is facing this error? is there any additional configuration to be done apart from the default qunit/opa5 files generated during project creation?


Thanks,

Shakib

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Shakib,

you start karma with option --no-sandbox.
Can you remove the option and rerun the pipeline?

Thanks and Regards
Dimitrij

shakib2105
Explorer
0 Kudos

Hi Dimitrij Afonitschkin,

Thanks for your response, But I Run karma without the option --no-sandbox as well. It still shows the same error.