Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-625

stop EUnit on first failure

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Help Wanted
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 21.0
    • Fix Version/s: None
    • Component/s: eunit
    • Labels:
      None

      Description

      Sometimes it is useful to end a unit test suite run as soon as a test fails.
      An eunit option such as

      {fail_fast, boolean()}

      , defaulting to false would instruct eunit to cancel/skip all other tests on the first failure.

      Note: another option that would help the development loop would be one that asks for the execution of a specific test via

      {only, Module, Function}

      .
      If both Module:Function_test/0 and Module:Function_test_/0 do not exist, fail.
      Otherwise run only either of these tests that exist and show the rest as skipped.

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            fenollp fenollp
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: