Jenkins + qUnit

前端 未结 5 967
盖世英雄少女心
盖世英雄少女心 2020-12-30 15:43

How to easily integrate Jenkins with qUnit? I gonna use real browser (like firefox and chrome) to run tests. My server runs on RedHat 6.1 Linux. I think I have all needed pl

5条回答
  •  [愿得一人]
    2020-12-30 16:01

    If using real browsers: Run the QUnit tests in multiple browsers simultaneously by using bunyip (https://github.com/ryanseddon/bunyip). It is built on top of Yeti which can provide JUnit XML compatible reports - thus readable by Jenkins

    If using PhantomJS (headless browser which acts almost like a real WebKit based one): Just shared here https://stackoverflow.com/a/17553889/998008 a walk-through on adding QUnit test runner task into Apache Ant build script. Jenkins runs the script while pulling project working copy from a VCS. You need to specify in Jenkins project the location of the output file. Output is JUnit XML compatible.

提交回复
热议问题