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
Timing as a metric #19
Comments
Command having a timeout is a great idea.
Do you mean something along the lines of |
Hi, yes - that would be great. And report total run time for some of the outputs? |
Actually, thinking about it a bit more:
Something like that? |
All fomrats have a total time report at the end of the run. Per result time is available today in the json formatter. $ goss validate --format json
{
"results": [
{
"duration": 663138,
"err": null,
"expected": [
"true"
],
"found": [
"true"
],
"property": "exists",
"resource-type": "User",
"successful": true,
"summary-line": "User: nobody: exists: matches expectation: [true]",
"test-type": 0,
"title": "nobody"
}
],
"summary": {
"failed-count": 0,
"summary-line": "Count: 1, Failed: 0, Duration: 0.009s",
"test-count": 1,
"total-duration": 9326791
}
} |
Maybe a "global" flag
|
I created a separate issue to track command timeout. #20 I'm holding off on global timeout, stoponfail and fail after for now to better understand the scope. Out of curiosity, have you had any test suite go over ~10 seconds, yet? |
Not yet, but some items like "docker pull", etc will definitely break through that barrier - I'm starting to flesh out the test suites now. |
Curious if #20 was sufficient for your usecase. For global timeout, I'm still leaning towards offloading that to other tools, ex: http://man7.org/linux/man-pages/man1/timeout.1.html |
Going to close this in favor of using external tools for global timeout. Per-test timeout is within the goss "blackbox" and has been addressed by #20. |
Would it make sense to add Time as a factor for test success/failure?
I'm thinking that a global timer would be very interesting to find serious regressions in overall test runtime.
Also
command
could have atimeout
/expected
time? (Again thinking about finding regressions in tests).The text was updated successfully, but these errors were encountered: