当前位置: 首页 > 软件库 > 程序开发 > >

ember-qunit-codemod

授权协议 MIT License
开发语言 JavaScript
所属分类 程序开发
软件类型 开源软件
地区 不详
投 递 者 萧德庸
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

ember-qunit-codemod

This codemod is intended to automatically convert your projects from the oldermoduleFor* syntax of ember-qunit@2 to the newer syntax proposed by emberjs/rfcs#232.

This codemod can be used in conjunction with ember-test-helpers-codemod.

Usage

To run a specific codemod from this project, you would run the following:

npx ember-qunit-codemod convert-module-for-to-setup-test path/of/files/ or/some**/*glob.js

# or

yarn global add ember-qunit-codemod
ember-qunit-codemod convert-module-for-to-setup-test path/of/files/ or/some**/*glob.js

Transforms

Contributing

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update Documentation

  • yarn update-docs

Credit

ember-qunit-codemod is heavily inspired by the work done in qunit-dom-codemodand ember-mocha-codemodslargely by Tobias Bieniek. Thank you!

 相关资料
  • ember-cli-qunit NOTE: This addon has been deprecated! Please use ember-qunit directly instead. Migrating to ember-qunit To upgrade from ember-cli-qunit@4 to ember-qunit@4 perform the following: yarn y

  • Ember Sinon QUnit This addon integrates sinon & ember-qunitvia ember-sinon, originally inspired by sinon-qunit. Why not simply use ember-sinon alone? Two reasons: ember-sinon does not handle cleanup o

  • Getting Setup Luckily, getting QUnit setup is a fairly straight-forward process that will take less than 5 minutes. We first setup a testing environment composed of three files: A HTML structure for d

  • QUnit 是一个功能强大、易于使用的 JavaScript 单元测试框架。它被 jQuery 项目用于测试代码和插件,它能够测试任何通用的 JavaScript 代码(甚至能够在服务器端测试 JavaScript 代码)。     示例代码: test("a basic test example", function() {  ok( true, "this test is fine" );  

  • 问题内容: 如何轻松地将Jenkins与qUnit集成?我将使用真正的浏览器(如firefox和chrome)运行测试。我的服务器在RedHat 6.1 Linux上运行。我想我都需要插件/库,但是我仍然不知道如何使其工作。我第一次与Jenkins合作(在服务器端)。 //编辑: 如果有人也可以共享想法如何构建覆盖率报告,那将是很棒的。 提前致谢 :)。 问题答案: 说詹金斯和QUnit只是难题的

  • qunit-dom High Level DOM Assertions for QUnit assert.dom('h1').exists();assert.dom('h1').hasClass('title');assert.dom('h1').hasText('Welcome to Ember, John Doe!');assert.dom('input').isFocused();asser