<small id='UmwHK'></small><noframes id='UmwHK'>

      <bdo id='UmwHK'></bdo><ul id='UmwHK'></ul>
    1. <tfoot id='UmwHK'></tfoot>
      <legend id='UmwHK'><style id='UmwHK'><dir id='UmwHK'><q id='UmwHK'></q></dir></style></legend>

        <i id='UmwHK'><tr id='UmwHK'><dt id='UmwHK'><q id='UmwHK'><span id='UmwHK'><b id='UmwHK'><form id='UmwHK'><ins id='UmwHK'></ins><ul id='UmwHK'></ul><sub id='UmwHK'></sub></form><legend id='UmwHK'></legend><bdo id='UmwHK'><pre id='UmwHK'><center id='UmwHK'></center></pre></bdo></b><th id='UmwHK'></th></span></q></dt></tr></i><div id='UmwHK'><tfoot id='UmwHK'></tfoot><dl id='UmwHK'><fieldset id='UmwHK'></fieldset></dl></div>

        如何从命令行运行 QUnit 测试?

        时间:2023-08-07
          <bdo id='24WRm'></bdo><ul id='24WRm'></ul>
        • <legend id='24WRm'><style id='24WRm'><dir id='24WRm'><q id='24WRm'></q></dir></style></legend>
              <tbody id='24WRm'></tbody>

              <small id='24WRm'></small><noframes id='24WRm'>

              <tfoot id='24WRm'></tfoot>

                <i id='24WRm'><tr id='24WRm'><dt id='24WRm'><q id='24WRm'><span id='24WRm'><b id='24WRm'><form id='24WRm'><ins id='24WRm'></ins><ul id='24WRm'></ul><sub id='24WRm'></sub></form><legend id='24WRm'></legend><bdo id='24WRm'><pre id='24WRm'><center id='24WRm'></center></pre></bdo></b><th id='24WRm'></th></span></q></dt></tr></i><div id='24WRm'><tfoot id='24WRm'></tfoot><dl id='24WRm'><fieldset id='24WRm'></fieldset></dl></div>
                • 本文介绍了如何从命令行运行 QUnit 测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我最近开始开发一个 Rails 应用程序,该应用程序已经有大量 QUnit 测试用于测试 ember.我负责使用 CI 设置应用程序的任务(我决定使用 CodeShip).我目前面临的问题是我运行 qunit 测试的唯一方法是转到 http://localhost:3000/qunit.我需要设置一种从命令行运行测试的方法.我已经进行了大量研究,并尝试了至少 10 种不同的解决方案,但没有一个成功.

                  I recently started working on a Rails app that has a large amount of QUnit tests already in place for testing ember. I have been charged with the task of setting the app with a CI (I decided to use CodeShip). The issue I currently face is that the only way for me to run the qunit tests is to go to http://localhost:3000/qunit. I need to setup a way to run the tests from the command line. I have done a large amount of research, and have tried at least 10 different solutions but non have managed to work.

                  目前我正在尝试使用 teaspoon 但我还没有设法让它工作.任何帮助将非常感激.如果我需要发布有关设置的更多信息,请告诉我.

                  Currently I am attempting to use teaspoon but it I have not managed to get it to work. Any help would be much appreciated. Please let me know if I need to post more information about the setup.

                  推荐答案

                  node-qunit-phantomjs可以轻松完成工作并且是独立的,而不是 Grunt-、Gulp-、任何插件:

                  node-qunit-phantomjs gets the job done easy enough and is standalone, not a Grunt-, Gulp-, whatever-plugin:

                  $ npm install -g node-qunit-phantomjs
                  
                  $ node-qunit-phantomjs tests.html
                  Testing tests.html
                  Took 8 ms to run 1 tests. 0 passed, 1 failed.
                  ...
                  $ echo $?
                  1
                  

                  这篇关于如何从命令行运行 QUnit 测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 Mocha 配置 TeamCity 构建? 下一篇:如何在 JavaScript 中使用模运算符 (%)?

                  相关文章

                  最新文章

                    <small id='ZxBAm'></small><noframes id='ZxBAm'>

                    1. <legend id='ZxBAm'><style id='ZxBAm'><dir id='ZxBAm'><q id='ZxBAm'></q></dir></style></legend>
                        <bdo id='ZxBAm'></bdo><ul id='ZxBAm'></ul>
                      <tfoot id='ZxBAm'></tfoot>
                    2. <i id='ZxBAm'><tr id='ZxBAm'><dt id='ZxBAm'><q id='ZxBAm'><span id='ZxBAm'><b id='ZxBAm'><form id='ZxBAm'><ins id='ZxBAm'></ins><ul id='ZxBAm'></ul><sub id='ZxBAm'></sub></form><legend id='ZxBAm'></legend><bdo id='ZxBAm'><pre id='ZxBAm'><center id='ZxBAm'></center></pre></bdo></b><th id='ZxBAm'></th></span></q></dt></tr></i><div id='ZxBAm'><tfoot id='ZxBAm'></tfoot><dl id='ZxBAm'><fieldset id='ZxBAm'></fieldset></dl></div>