| View previous topic :: View next topic |
| Author |
Message |
urlwolf
Joined: 16 Mar 2006 Posts: 148
|
Posted: Fri Jan 25, 2008 12: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. |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Sat Oct 25, 2008 3:26 pm Post subject: |
|
|
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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
urlwolf
Joined: 16 Mar 2006 Posts: 148
|
Posted: Sat Oct 25, 2008 4:43 pm Post subject: |
|
|
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 |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Sat Oct 25, 2008 4:48 pm Post subject: |
|
|
| urlwolf wrote: | | I think it has more to do with the philosophy of the language. | Chris has said before ahk is inspired by php. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
guest3456 Guest
|
Posted: Sat Jul 31, 2010 2:49 am Post subject: |
|
|
| bump? anyone do unit testing for ahk projects? |
|
| Back to top |
|
 |
guest3456
Joined: 10 Mar 2011 Posts: 308
|
|
| Back to top |
|
 |
|