Jump to content
Sign in to follow this  
dewclaws

Unit-testing for included files in AutoIT?

Recommended Posts

dewclaws

Sorry if I am calling this the wrong thing. I just read up on this and it sounds like something I need to add to some code for work.

what I need is to have header on a library file that will only execute if it is ran by itself. This would help track down problem when I start updating libraries ( Ie included files)


Dewclaws

Share this post


Link to post
Share on other sites
Shevilie

Sorry if I am calling this the wrong thing. I just read up on this and it sounds like something I need to add to some code for work.

what I need is to have header on a library file that will only execute if it is ran by itself. This would help track down problem when I start updating libraries ( Ie included files)

A not so pretty way of doing this, is having it checked for its own name. And if its the libs name, then its runned by itself.


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×