0

Use TeamCity environment variable in MStest

Hi,

I'm using TeamCity to run my build using VS2010 SLN runner. I'm also using the MSTest integration to run some tests.

My tests require some setup/teardown work which is done by two batch scripts which are defined in an MSTest config file (mstest /runconfig flag)

My problem is, these scripts need to know my source checkout directory %teamcity.build.checkoutDir%. However, when this variable is used in my batch scripts it cannot be resolved.

Is there any way I can use these variables in my batch scripts?

e.g.

cd %teamcity.build.checkoutDir%
"C:\Program Files\Windows Azure SDK\v1.2\bin\csrun.exe" SC.CloudService.csx ServiceConfiguration.cscfg




Thanks,

1 comment

Please sign in to leave a comment.