testplane icon indicating copy to clipboard operation
testplane copied to clipboard

Reports for Jenkins

Open Anyazinovyeva opened this issue 7 years ago • 3 comments

Hello!

Want to run tests in the jenkins, but can't get report for Jenkins plugins for view results in build(use Xunit plugin).

Mocha has special reporter xunit Add mochaOpts in config for Hermione like this

system: {
		mochaOpts: {
			reporter: 'xunit',
			timeout: 60000
		}
	}

It doesn't help, nothing change.

Anyazinovyeva avatar Jan 22 '19 12:01 Anyazinovyeva

Hermione doesn't have xunit reporter. And it will not work through the mochaOpts because mocha used in hermione only as a test parser, not runner. I'd suggest you to use html-reporter and publish it via some jenkins plugin like HTML Publisher

j0tunn avatar Jan 22 '19 12:01 j0tunn

Do you have any ideas how I can change status of build in Jenkins if appear Error?

Anyazinovyeva avatar Jan 22 '19 12:01 Anyazinovyeva

In case of test fail hermione exit code will be nonzero. So status should be fail by default

j0tunn avatar Jan 22 '19 14:01 j0tunn