Giter Site home page Giter Site logo

wowunit's Introduction

Drupal.org logo Twitter logo

Hi there ๐Ÿ‘‹

wowunit's People

Contributors

fulgerul avatar mirroar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wowunit's Issues

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

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 :)

Test ordering patch + the 2 mini patches

http://www.2shared.com/file/stR15Nh-/wowUnit.html

That link contains the following changes:

Core.lua

  • Categories and subcategories test ordering [The code sitting at the top of core.lua should be put in a diff file, loaded from the .toc first. My addons all sport usefull_functions.lua that contain improvements to LUA)
  • Made the test window bigger [TODO: Resizable window...]

Readme.md

  • More commenting on the Sample code

Tests ordering,simple asynch timebased tests, AceEvents and repeating tests.

Hey,
I just wanted to say big thanks for this, it is very valuable for me! :D

Now to business (feature requests):

  1. I noticed you do pairs when iterating test categories and sub categories. All tests need more order! :D
  2. A simpler way to do Asynchronous Testing. Something like wowUnit:asynch(function() end,function() end,<time interval say 5 secs>) should suffice.
  3. More documentation is needed, like how do I do asynch testing on AceEvents?
  4. A way to repeat the tests X amount of times, so that I can see if something goes broke after running the tests a few time.

Thats all I have for now, I will try to send you some code when I can muster up the spirit to make a mess of other peoples code.

Thanks yet again, and sorry for the lengthy post,
Fulg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.