Skip to content

Feature request: When failing a test, return the value returned #6

@fulgerul

Description

@fulgerul

To illustrate here is some code:

-- in file: Core.lua
function addon_obj:to_be_tested(name)
      if name == "TEST" then
             return "TEST"
      else
             return nil
      end
end
-- in file: test_suite.lua
wowUnit:assert(addon_obj:to_be_tested("TEST"),"Will succeed")
wowUnit:assert(addon_obj:to_be_tested("BLAH"),"This should now display (in frame.lua) this text +"..the_returned_variable)

I looked through the code, but wasn't all clear to me :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions