It is currently Tue Mar 31, 2020 5:53 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PureUnit -- automated testing framework for PureBasic
PostPosted: Sun Sep 09, 2007 11:34 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5797
Location: Germany
PureUnit is a testing framework with similar concepts as other xUnit frameworks like JUnit.
It can be used to test your procedures, includefiles or userlibraries or to
do so called "test driven development", where you first write the test for
a procedure and then implement the actual code until the test succeeds.

It comes as a simple set of macros for writing the testcode and a tool
to executed the tests and report the progress/status of the tests.
It is designed to run as a standalone GUI program, to be integrated into
the IDE as a tool or to run from the console, a script or a makefile.

PureUnit requires a 4.10 compiler or newer. (the beta versions will work)
Currently there is a Windows and Linux executable available. A version
for OSX will be provided when there is a 4.10 compiler for OSX.

This started as a small project for me to have a way to easily create and manage
testcodes for the PureBasic library commands, but as is sometimes the case
with my projects, i went into overkill mode and produced a quite useful piece
of software that i don't want to keep away from you guys ;)

Note: We have not decided yet wether this will be a part of the official PB package,
or if i will just release it as a private sideproject. (means less support work).
For now consider this beta, as it has not been tested that intensly yet,
i will keep updating/bugfixing this in any case though, as we use it for our own
development work as well.


You can download the tool here: http://freak.purearea.net/tools/PureUnit03.zip

Please read the 'Readme.txt' and the example for instructions.
Any feedback is welcome...

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 10, 2007 12:10 am 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3134
Location: United Kingdom
This is a really good idea, especially for those creating libs using tailbite.

Thanks. :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 10, 2007 4:27 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 29, 2003 10:35 am
Posts: 537
This has got to be part of the official PB releases......

It's a professional tool and will help to promote PB as a professional product, which IMHO, it is :D

_________________
Paid up PB User !


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 10, 2007 7:16 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 19, 2003 11:36 am
Posts: 1418
Location: Doubs - France
Thank you. It's a great tool :)

_________________
Please correct my english
http://purebasic.developpez.com/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 11, 2007 3:31 am 
Offline
User
User

Joined: Thu May 11, 2006 1:45 am
Posts: 45
Location: florida
Excellent! Must be part of the full release, surely... great developers aid.
Thank you

_________________
Leopard-parallels-XP-Vista


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Mar 22, 2009 9:08 am 
Offline
Addict
Addict

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3792
Location: Berlin, Germany
Thank you for this great tool!
I use it for testing all my important include files. It was a good decision to add PureUnit to the official release.

Just a minor suggestion: Maybe you can add a minimize button to the title bar?

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: PureUnit -- automated testing framework for PureBasic
PostPosted: Thu Feb 23, 2017 8:19 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1226
Location: right here
is it possible to use PureUnit in combination with console commands? as soon as my test code contains a PrintN() then PureUnit hangs up and i have to kill it. i tried with PureUnit.exe and PureUnitGui.exe, both with and without the --gui argument.
for example this code file:
Code:
ProcedureUnit mytest()
 
  OpenConsole("title")
  PrintN("bla")
 
  Assert(1 = 1, "fine")
 
EndProcedureUnit
saved as 'test_PureUnit.pb' and then the following run in cmd from the directory containing the the test code:
Code:
"C:\Program Files\PureBasic_5_60_b6\SDK\PureUnit\PureUnitGui.exe" --compiler "C:\Program Files\PureBasic_5_60_b6\Compilers\pbcompiler.exe" --gui test_PureUnit.pb
the tool opens and begins its work but then does not respond. it works if i comment out the PrintN().

ps:
the same result if i open PureUnitGui.exe directly from the explorer and choose the file.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Walko and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye