4

我想组织我的测试套件,如 phpunit

添加在同一项目中其他地方找到的所有测试的脚本

4

1 回答 1

0

An example of a small prototype of command-line testing with CasperJS is at https://github.com/mcamiano/friendlyghost .

Basically, it uses shell scripting to wrap CasperJS as a runner, providing test suite organization, test output logs, helpers, fakers, and even fixtures.

Posting it only as an example, not plugging - I actually use Codeception with PhantomJS via Selenium2 as my primary tool. By comparison, FriendlyGhost is not very refined, and certainly not fast for lots of tests, but Casper's CoffeeScript is a cleaner and more extensible language to work in than Codeception's modules and a little shell wrapping can be good enough for diagnostic purposes.

于 2014-05-30T00:54:13.447 回答