wantTo() 在 Codeception 中的用途和正确使用是什么?
What is the purpose, and proper use of wantTo() in Codeception?
我正在使用测试框架 Codeception 进行 BDD。我明白想要什么的想法,但我不明白这个功能是做什么的。
$I->wantTo('Understand what this method does!');
http://codeception.com/docs/03-AcceptanceTests#Comments
Commands like amGoingTo, expect, expectTo help you in making tests
more descriptive.
$I->wantTo('Understand what this method does!');
将在详细输出中呈现为 * I want to understand what this method does!
。
我正在使用测试框架 Codeception 进行 BDD。我明白想要什么的想法,但我不明白这个功能是做什么的。
$I->wantTo('Understand what this method does!');
http://codeception.com/docs/03-AcceptanceTests#Comments
Commands like amGoingTo, expect, expectTo help you in making tests more descriptive.
$I->wantTo('Understand what this method does!');
将在详细输出中呈现为 * I want to understand what this method does!
。