Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept duration parameter in TeamCity-TestFinished #6

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

Accept duration parameter in TeamCity-TestFinished #6

mwrock opened this issue Apr 6, 2012 · 1 comment

Comments

@mwrock
Copy link
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...

@gep13
Copy link
Member

gep13 commented Jan 2, 2015

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

Thanks!

@gep13 gep13 closed this as completed Jan 2, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants