Skip to content

Instantly share code, notes, and snippets.

@jgautheron
Created May 24, 2016 15:20
Show Gist options
  • Save jgautheron/abf67fda473b090463bbc85f2b6e9b08 to your computer and use it in GitHub Desktop.
Save jgautheron/abf67fda473b090463bbc85f2b6e9b08 to your computer and use it in GitHub Desktop.
Exago's TestRunner JSON output
{
"packages": [
{
"name": "github.com/Sirupsen/logrus",
"coverage": 48,
"execution_time": 0.014,
"success": false,
"tests": [
{
"name": "TestEntryWithError",
"execution_time": 0,
"passed": true
},
{
"name": "TestEntryPanicln",
"execution_time": 0,
"passed": true
},
{
"name": "TestEntryPanicf",
"execution_time": 0,
"passed": true
},
{
"name": "TestHookFires",
"execution_time": 0,
"passed": true
},
{
"name": "TestHookCanModifyEntry",
"execution_time": 0,
"passed": true
},
{
"name": "TestCanFireMultipleHooks",
"execution_time": 0,
"passed": true
},
{
"name": "TestErrorHookShouldntFireOnInfo",
"execution_time": 0,
"passed": true
},
{
"name": "TestErrorHookShouldFireOnError",
"execution_time": 0,
"passed": true
},
{
"name": "TestErrorNotLost",
"execution_time": 0,
"passed": true
},
{
"name": "TestErrorNotLostOnFieldNotNamedError",
"execution_time": 0,
"passed": true
},
{
"name": "TestFieldClashWithTime",
"execution_time": 0,
"passed": true
},
{
"name": "TestFieldClashWithMsg",
"execution_time": 0,
"passed": true
},
{
"name": "TestFieldClashWithLevel",
"execution_time": 0,
"passed": true
},
{
"name": "TestJSONEntryEndsWithNewline",
"execution_time": 0,
"passed": true
},
{
"name": "TestPrint",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfo",
"execution_time": 0,
"passed": true
},
{
"name": "TestWarn",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfolnShouldAddSpacesBetweenStrings",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfolnShouldAddSpacesBetweenStringAndNonstring",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfolnShouldAddSpacesBetweenTwoNonStrings",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfoShouldAddSpacesBetweenTwoNonStrings",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfoShouldNotAddSpacesBetweenStringAndNonstring",
"execution_time": 0,
"passed": true
},
{
"name": "TestInfoShouldNotAddSpacesBetweenStrings",
"execution_time": 0,
"passed": true
},
{
"name": "TestWithFieldsShouldAllowAssignments",
"execution_time": 0,
"passed": true
},
{
"name": "TestUserSuppliedFieldDoesNotOverwriteDefaults",
"execution_time": 0,
"passed": true
},
{
"name": "TestUserSuppliedMsgFieldHasPrefix",
"execution_time": 0,
"passed": true
},
{
"name": "TestUserSuppliedTimeFieldHasPrefix",
"execution_time": 0,
"passed": true
},
{
"name": "TestUserSuppliedLevelFieldHasPrefix",
"execution_time": 0,
"passed": true
},
{
"name": "TestDefaultFieldsAreNotPrefixed",
"execution_time": 0,
"passed": true
},
{
"name": "TestDoubleLoggingDoesntPrefixPreviousFields",
"execution_time": 0,
"passed": true
},
{
"name": "TestConvertLevelToString",
"execution_time": 0,
"passed": true
},
{
"name": "TestParseLevel",
"execution_time": 0,
"passed": true
},
{
"name": "TestGetSetLevelRace",
"execution_time": 0,
"passed": true
},
{
"name": "TestLoggingRace",
"execution_time": 0,
"passed": true
},
{
"name": "TestLogrusInterface",
"execution_time": 0,
"passed": true
},
{
"name": "TestQuoting",
"execution_time": 0,
"passed": false
},
{
"name": "TestTimestampFormat",
"execution_time": 0,
"passed": true
}
]
}
],
"checklist": {
"Failed": [
{
"Category": "goodCitizen",
"Desc": "Contribution Process: Does the project document a contribution process?",
"Name": "hasContributing"
},
{
"Category": "extraCredit",
"Desc": "Blackbox Tests: In addition to standard tests, does the project have blackbox tests?",
"Name": "hasBlackboxTests"
},
{
"Category": "minimumCriteria",
"Desc": "Directory Names and Packages Match: Does each package <pkg> statement's package name match the containing directory name?",
"Name": "isDirMatch"
},
{
"Category": "minimumCriteria",
"Desc": "go tool vet Correctness: Is the Go vet satisfied?",
"Name": "isVetted"
}
],
"Passed": [
{
"Category": "minimumCriteria",
"Desc": "golint Correctness: Is the linter satisfied?",
"Name": "isLinted"
},
{
"Category": "minimumCriteria",
"Desc": "README Presence: Does the project's include a documentation entrypoint?",
"Name": "hasReadme"
},
{
"Category": "minimumCriteria",
"Desc": "Licensed: Does the project have a license?",
"Name": "hasLicense"
},
{
"Category": "extraCredit",
"Desc": "Benchmarks: In addition to tests, does the project have benchmarks?",
"Name": "hasBenches"
},
{
"Category": "minimumCriteria",
"Desc": "gofmt Correctness: Is the code formatted correctly?",
"Name": "isFormatted"
},
{
"Category": "minimumCriteria",
"Desc": "Compiles: Does the project build?",
"Name": "projectBuilds"
}
]
},
"execution_time": {
"goprove": "125.187762ms",
"gotest": "2.05834796s"
},
"raw_output": {
"gotest": "=== RUN TestEntryWithError\n--- PASS: TestEntryWithError (0.00s)\n=== RUN TestEntryPanicln\n--- PASS: TestEntryPanicln (0.00s)\n=== RUN TestEntryPanicf\n--- PASS: TestEntryPanicf (0.00s)\n=== RUN TestHookFires\n--- PASS: TestHookFires (0.00s)\n=== RUN TestHookCanModifyEntry\n--- PASS: TestHookCanModifyEntry (0.00s)\n=== RUN TestCanFireMultipleHooks\n--- PASS: TestCanFireMultipleHooks (0.00s)\n=== RUN TestErrorHookShouldntFireOnInfo\n--- PASS: TestErrorHookShouldntFireOnInfo (0.00s)\n=== RUN TestErrorHookShouldFireOnError\n--- PASS: TestErrorHookShouldFireOnError (0.00s)\n=== RUN TestErrorNotLost\n--- PASS: TestErrorNotLost (0.00s)\n=== RUN TestErrorNotLostOnFieldNotNamedError\n--- PASS: TestErrorNotLostOnFieldNotNamedError (0.00s)\n=== RUN TestFieldClashWithTime\n--- PASS: TestFieldClashWithTime (0.00s)\n=== RUN TestFieldClashWithMsg\n--- PASS: TestFieldClashWithMsg (0.00s)\n=== RUN TestFieldClashWithLevel\n--- PASS: TestFieldClashWithLevel (0.00s)\n=== RUN TestJSONEntryEndsWithNewline\n--- PASS: TestJSONEntryEndsWithNewline (0.00s)\n=== RUN TestPrint\n--- PASS: TestPrint (0.00s)\n=== RUN TestInfo\n--- PASS: TestInfo (0.00s)\n=== RUN TestWarn\n--- PASS: TestWarn (0.00s)\n=== RUN TestInfolnShouldAddSpacesBetweenStrings\n--- PASS: TestInfolnShouldAddSpacesBetweenStrings (0.00s)\n=== RUN TestInfolnShouldAddSpacesBetweenStringAndNonstring\n--- PASS: TestInfolnShouldAddSpacesBetweenStringAndNonstring (0.00s)\n=== RUN TestInfolnShouldAddSpacesBetweenTwoNonStrings\n--- PASS: TestInfolnShouldAddSpacesBetweenTwoNonStrings (0.00s)\n=== RUN TestInfoShouldAddSpacesBetweenTwoNonStrings\n--- PASS: TestInfoShouldAddSpacesBetweenTwoNonStrings (0.00s)\n=== RUN TestInfoShouldNotAddSpacesBetweenStringAndNonstring\n--- PASS: TestInfoShouldNotAddSpacesBetweenStringAndNonstring (0.00s)\n=== RUN TestInfoShouldNotAddSpacesBetweenStrings\n--- PASS: TestInfoShouldNotAddSpacesBetweenStrings (0.00s)\n=== RUN TestWithFieldsShouldAllowAssignments\n--- PASS: TestWithFieldsShouldAllowAssignments (0.00s)\n=== RUN TestUserSuppliedFieldDoesNotOverwriteDefaults\n--- PASS: TestUserSuppliedFieldDoesNotOverwriteDefaults (0.00s)\n=== RUN TestUserSuppliedMsgFieldHasPrefix\n--- PASS: TestUserSuppliedMsgFieldHasPrefix (0.00s)\n=== RUN TestUserSuppliedTimeFieldHasPrefix\n--- PASS: TestUserSuppliedTimeFieldHasPrefix (0.00s)\n=== RUN TestUserSuppliedLevelFieldHasPrefix\n--- PASS: TestUserSuppliedLevelFieldHasPrefix (0.00s)\n=== RUN TestDefaultFieldsAreNotPrefixed\n--- PASS: TestDefaultFieldsAreNotPrefixed (0.00s)\n=== RUN TestDoubleLoggingDoesntPrefixPreviousFields\n--- PASS: TestDoubleLoggingDoesntPrefixPreviousFields (0.00s)\n=== RUN TestConvertLevelToString\n--- PASS: TestConvertLevelToString (0.00s)\n=== RUN TestParseLevel\n--- PASS: TestParseLevel (0.00s)\n=== RUN TestGetSetLevelRace\n--- PASS: TestGetSetLevelRace (0.00s)\n=== RUN TestLoggingRace\ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \ntime=\"2016-05-24T17:19:39+02:00\" level=info msg=info \n--- PASS: TestLoggingRace (0.00s)\n=== RUN TestLogrusInterface\n--- PASS: TestLogrusInterface (0.00s)\n=== RUN TestQuoting\n--- FAIL: TestQuoting (0.00s)\n\ttext_formatter_test.go:11: foo\n=== RUN TestTimestampFormat\n--- PASS: TestTimestampFormat (0.00s)\nFAIL\ncoverage: 48.0% of statements\nFAIL\tgithub.com/Sirupsen/logrus\t0.014s\n? \tgithub.com/Sirupsen/logrus/examples/basic\t[no test files]\n? \tgithub.com/Sirupsen/logrus/examples/hook\t[no test files]\n=== RUN TestLogstashFormatter\n--- PASS: TestLogstashFormatter (0.00s)\nPASS\ncoverage: 96.0% of statements\nok \tgithub.com/Sirupsen/logrus/formatters/logstash\t0.011s\tcoverage: 96.0% of statements\n=== RUN TestLocalhostAddAndPrint\ntime=\"2016-05-24T17:19:38+02:00\" level=info msg=\"Congratulations!\" \n--- PASS: TestLocalhostAddAndPrint (0.00s)\nPASS\ncoverage: 46.7% of statements\nok \tgithub.com/Sirupsen/logrus/hooks/syslog\t0.016s\tcoverage: 46.7% of statements\n=== RUN TestAllHooks\ntime=\"2016-05-24T17:19:39+02:00\" level=error msg=\"Hello error\" \n--- PASS: TestAllHooks (0.00s)\nPASS\ncoverage: 100.0% of statements\nok \tgithub.com/Sirupsen/logrus/hooks/test\t0.012s\tcoverage: 100.0% of statements\n"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment