• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

FlexUnit4 user interface

New Here ,
Nov 19, 2010 Nov 19, 2010

Copy link to clipboard

Copied

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?

TOPICS
FlexUnit

Views

2.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Nov 19, 2010 Nov 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

...

Votes

Translate

Translate
Advocate ,
Nov 19, 2010 Nov 19, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 19, 2010 Nov 19, 2010

Copy link to clipboard

Copied

LATEST

Thank you.

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines