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

eunit run twice tests when both module and module_tests given

    XMLWordPrintable

    Details

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

      Description

      Hi,
      I have a module 'xxxx.erl' (no tests in it) and 3 eunit tests in 'xxxx_tests.erl' .

      ```
      1> eunit:test(['xxxx_tests'],[]).
      All 3 tests passed.
      ok
      2> eunit:test(['xxxx'],[]).
      All 3 tests passed.
      3> eunit:test(['xxxx_tests','xxxx'],[]).
      All 6 tests passed.```

      So giving 'xxxx' launch tests in 'xxxx_tests' (documentation explain this ) but giving both modules run twice the tests...

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            crownedgrouse Eric Pailleau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: