Accept duration parameter in TeamCity-TestFinished #6

Closed
mwrock opened this Issue Apr 6, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

mwrock commented Apr 6, 2012

According to TeamCity's documentation, the testFinished service message can take a duration attribute that specifies the amount of time a test has taken:

##teamcity[testFinished name='testname' duration='<test_duration_in_milliseconds>']

The current teamcity.psm1 only accepts the name attribute. While that certainly satisfies most cases and will cause TeamCity to measure the time by the span between the testStarted and testFinished messages, I recently had a need for this where I spawned concurrent jobs to hit http endpoints and then come back with results. Each job tracked the time taken within its own thread.

I modified the function to optionally take a duration parameter. Pull request coming...

@mwrock mwrock added a commit to mwrock/psake-contrib that referenced this issue Apr 6, 2012

@mwrock mwrock re issue #6 Accept duration parameter in TeamCity-TestFinished c67c2b2
Owner

gep13 commented Jan 2, 2015

Looks like this issue was closed, via the merged Pull Request, so going to close it.

Thanks!

gep13 closed this Jan 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment