NatUnit (former NUNIT) on SourceForge

URL dieses Beitrags: http://blog.stefan-macke.com/2012/03/15/natunit-former-nunit-on-sourceforge/

We published NatUnit (former NUNIT) on SourceForge today: NatUnit on SourceForge.

Due to naming conflicts with the “real” NUnit, we decided to publish it as NatUnit. However, the internal name is still NUNIT, as Natural module names are restricted to a length of 8 characters which left us with only one character to distinguish between modules, if we used NATUNIT ;-)

NatUnit is easy to use, as the following code (a simple test case) shows. The whole framework is written in Natural itself, so you don’t have to use external tools like NaturalONE.

  1. DEFINE DATA
  2. PARAMETER USING NUTESTP
  3. LOCAL USING NUCONST
  4. LOCAL USING NUASSP
  5. END-DEFINE
  6. *
  7. NUTESTP.FIXTURE := ‘Example TestCase 1′
  8. *
  9. INCLUDE NUTCTEMP
  10. INCLUDE NUTCSTUB
  11. *
  12. DEFINE SUBROUTINE TEST
  13. *
  14. ********************************************************************************
  15. IF NUTESTP.TEST EQ ‘compare two equal numbers should pass’
  16. ********************************************************************************
  17. ASSERT-LINE := *LINE; PERFORM ASSERT-NUM-EQUALS NUASSP 2 2
  18. END-IF
  19. *
  20. END-SUBROUTINE
  21. *
  22. END

NatUnit is licensed under LGPL v3, so feel free to use it in your (commercial) applications or even help us further develop the framework.

Kommentar zu diesem Beitrag

  1. Gravatar L4N (Log4Nat) – a logging framework for Natural (by Software AG) » Stefan Macke
    Am 15. März 2012 um 20:47 Uhr

    [...] Impressum « NatUnit (former NUNIT) on SourceForge [...]

Einen Kommentar schreiben

XHTML: Diese Tags sind erlaubt: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>