I've been pondering something recently and I want to pose a question to you 
all... Do you run unit tests on your build machine? 
 
I've always been paranoid about doing this because you don't have that much 
control over what code a developer writes in their unit test. While you can 
limit the damage that can be done by running your builds as a non-privileged 
user and using ACLs to restrict what the user can do, there is still the issue 
of stability, unit tests filling the hard drive with temporary files, launching 
processes and not cleaning them up and the like.
 
I've looked at a few solutions:
 
1. When the build completes queue the unit tests to run on another machine. At 
least this way the build machine is maintained in a clean state and it's only 
the unit test machine that is affected.
 
2. Run the unit tests in a virtual machine, at the end of the test run rollback 
the virtual machine to the previous state.
 
3. Go nuts with ACLs and CAS to ensure unit tests can't do anything bad.
 
Is this something that bothers you? Am I just being pedantic? If it was easier 
to run your unit tests in a protected sandbox would you? Are you using any of 
these solutions?
 
 
 
William Bartholomew 
Productivity Specialist - Software Engineering 

Financials | Human Resource & Payroll | Supply Chain | Business Intelligence | 
Budgeting | Property & Rating | Performance Planning | Student Management | 
Works & Assets | Enterprise Content Management | Custom Software Development | 
Consulting Services 
  

Phone:   +61 7 3377 7566 | Fax: +61 7 3377 7301 | Mobile: +61 403 828 029       
Address:         67 High Street, Toowong QLD 4066 (PO Box 1078 Toowong QLD 
4066)        
Email:   [EMAIL PROTECTED] Web: www.TechnologyOneCorp.com 
<http://www.technologyonecorp.com/>   

TechnologyOne (ASX: TNE) is a leading enterprise software solutions provider 
with offices in each State and Territory of Australia, New Zealand, Malaysia 
and the United Kingdom. For more than 20 years we have been providing 
comprehensive and deeply integrated enterprise software solutions used by 
business, government, health and community, education, financial services and 
the utilities sectors. We develop, implement and support our own world class 
solutions which are based on leading edge, state of the art technology and 
backed up by a substantial research and development program to ensure we 
continue to provide our customers with long term security. 

TechnologyOne accepts no liability for any damage caused by this email or its 
attachments. The information in this email is only for the intended recipient 
and may contain confidential and/or privileged material. If you received this 
in error, please kindly notify the sender by return email and delete this email 
and any attachments from your system.  Opinions, conclusions and other 
information in this message that do not relate to the official business of the 
company shall be understood as neither given nor endorsed by it.  If you 
believe that you have been spammed please email [EMAIL PROTECTED] to report 
your complaint.



OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/

Powered by mailenable.com, supported by www.readify.net

Reply via email to