Skip to main content
November 19, 2010
解決済み

FlexUnit4 user interface

  • November 19, 2010
  • 返信数 1.
  • 2824 ビュー

When I run a series of tests and one (or more) fails, is there a way to tell the user interface the expected and actual result?

このトピックへの返信は締め切られました。
解決に役立った回答 mlabriola

That is what the assert classes do.

In the most basic sense, you have things like

assertEquals( 8, x );

Wherein, 8 is the expected value, and x is the real value. If it fails, the user interface will tell you to expected versus actual. More on this here:

http://docs.flexunit.org/index.php?title=Writing_a_Basic_Test

In the more complicated approach, you have Hamcrest assertions, which provide even more human readable failures. You can read more about these here:

http://docs.flexunit.org/index.php?title=Hamcrest

Mike

返信数 1

mlabriola解決!
Participating Frequently
November 19, 2010

That is what the assert classes do.

In the most basic sense, you have things like

assertEquals( 8, x );

Wherein, 8 is the expected value, and x is the real value. If it fails, the user interface will tell you to expected versus actual. More on this here:

http://docs.flexunit.org/index.php?title=Writing_a_Basic_Test

In the more complicated approach, you have Hamcrest assertions, which provide even more human readable failures. You can read more about these here:

http://docs.flexunit.org/index.php?title=Hamcrest

Mike

November 19, 2010

Thank you.

Is there a way to save the results of a test run?