urlwolf
Joined: 16 Mar 2006 Posts: 100
|
Posted: Fri Jan 25, 2008 1:05 pm Post subject: anyone missing some kind of testing framework for ahk? |
|
|
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. |
|