Qunit + JSCoverage + Jenkins

后端 未结 2 612
太阳男子
太阳男子 2020-12-31 13:13

I have started using Qunit to test my JS code. I am looking into JSCoverage to generate the coverage reports later. We have a CI server (Jenkins) which already do a few thin

2条回答
  •  难免孤独
    2020-12-31 13:36

    QUnit: use QUnit API to generate junit XML files. Here's a sample.

    In Post-build Actions for your job you then check Publish JUnit test result report and specify your junit XML files (or their file pattern). Jenkins will then mark builds that have failed tests as unstable and produce a nice trend graph of successful/failing tests.

提交回复
热议问题