lfex / ltest

A Testing Framework for LFE (successor to lfeunit)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in ltest or test-runner

billota opened this issue · comments

Note: Also created this ticket in the test runner project: lfe-rebar3/rebar3_lfe_ltest#2

When running the unit tests for the kanin project (see https://github.com/lfex/kanin/blob/master/test/unit-kanin-uri-tests.lfe), an error arises (unspecified ... looks like an undef of some sort). When run with rebar3, this error does not arise.

$ rebar3 as test lfe test -t unit
================================ ltest =================================

------------------------------ Unit Tests ------------------------------

module: unit-kanin-chan-tests
  function_checks ................................................... [ok]
  export_count ...................................................... [ok]
  time: 24ms

module: unit-kanin-conn-tests
  function_checks ................................................... [ok]
  export_count ...................................................... [ok]
  time: 23ms

module: unit-kanin-uri-tests
  function_checks ................................................... [ok]
  export_count ...................................................... [ok]
  parse_net ....................................................... [fail]

      Assertion failure:
      undef

  parse_direct .................................................... [fail]

      Assertion failure:
      undef

  time: 92ms

summary:
  Tests: 8  Passed: 6  Skipped: 0  Failed: 2 Erred: 0
  Total time: 139ms


========================================================================
$ rebar3 as test eunit
======================== EUnit ========================
file "kanin.app"
  application 'kanin'
    module 'kanin-chan'
    module 'kanin-conn'
    module 'kanin-uri'
    module 'kanin-util'
    module 'kanin'
    module 'unit-kanin-chan-tests'
      unit-kanin-chan-tests: function_checks_test...ok
      unit-kanin-chan-tests: export_count_test...[0.011 s] ok
      [done in 0.017 s]
    module 'unit-kanin-conn-tests'
      unit-kanin-conn-tests: function_checks_test...ok
      unit-kanin-conn-tests: export_count_test...ok
      [done in 0.006 s]
    module 'unit-kanin-uri-tests'
      unit-kanin-uri-tests: function_checks_test...ok
      unit-kanin-uri-tests: export_count_test...ok
      unit-kanin-uri-tests: parse_net_test...[0.004 s] ok
      unit-kanin-uri-tests: parse_direct_test...ok
      [done in 0.016 s]
    [done in 0.208 s]
  [done in 0.250 s]
=======================================================
  All 8 tests passed.