AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

anyone missing some kind of testing framework for ahk?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
urlwolf



Joined: 16 Mar 2006
Posts: 148

PostPosted: Fri Jan 25, 2008 12:05 pm    Post subject: anyone missing some kind of testing framework for ahk? Reply with quote

Hi,

Since now there are large scripts coded by several users, even using a repository (see lil'builder), it looks like we could easily start using a test framework too.

Basically, the idea is to write tests for units of your code, and run these tests everytime you add something that may break the code.

Sounds simple, and sensible. It's more appropriate for OO development, but I'm sure it can be adapted to testing ahk functions and labels and such.

There are a few paradigms (some coming from the extreme programming people).
Examples:
http://en.wikipedia.org/wiki/Behaviour-driven_development
http://en.wikipedia.org/wiki/Test-driven_development

Most languages have support a test driven tool called NUnit. Maybe it's a good idea to write something similar for ahk?

Note: I don't use ahk often enough to justify writing this, plus I don't use NUnit myself so I'm just talking about what _sounds_ like a good idea. It may not be.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sat Oct 25, 2008 3:26 pm    Post subject: Reply with quote

You can't compare AHK to OOP because it's a lightweight scripting language. I don't think frameworks would be beneficial to many users but if you can think of example scenarios I'd like to hear them.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
urlwolf



Joined: 16 Mar 2006
Posts: 148

PostPosted: Sat Oct 25, 2008 4:43 pm    Post subject: Reply with quote

Well, Lua and ruby are also lightweight scripting languages. They are fully OO, though.

I think it has more to do with the philosophy of the language. In ruby there's a strong testing culture.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sat Oct 25, 2008 4:48 pm    Post subject: Reply with quote

urlwolf wrote:
I think it has more to do with the philosophy of the language.
Chris has said before ahk is inspired by php.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guest3456
Guest





PostPosted: Sat Jul 31, 2010 2:49 am    Post subject: Reply with quote

bump? anyone do unit testing for ahk projects?
Back to top
guest3456



Joined: 10 Mar 2011
Posts: 308

PostPosted: Wed Apr 20, 2011 9:22 am    Post subject: Reply with quote

UTest by majkinetor

http://www.autohotkey.com/forum/viewtopic.php?t=49262
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group