We run MediaWiki Qunit tests with Karma. It has support for generating a Junit result. Our Gruntfile could detect whether it runs under Jenkins and inject the proper configuration, then get the Jenkins Job to process the result.
Jobs:
mediawiki-core-qunit-jessie mediawiki-extensions-qunit-jessie mwext-qunit-composer-jessie mwext-qunit-jessie