Page MenuHomePhabricator

allow either (<time> seconds) or (<time>s) format for test result time
ClosedPublic

Authored by ox on Apr 16 2015, 4:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 2:18 AM
Unknown Object (File)
Fri, Nov 8, 9:22 PM
Unknown Object (File)
Fri, Nov 8, 4:06 AM
Unknown Object (File)
Sun, Nov 3, 6:52 AM
Unknown Object (File)
Oct 14 2024, 1:52 PM
Unknown Object (File)
Sep 5 2024, 6:47 PM
Unknown Object (File)
Sep 5 2024, 11:44 AM
Unknown Object (File)
Sep 5 2024, 11:44 AM

Details

Summary

The default Go Test Parser stopped showing the test function name at the end of the package after some Go upgrade. We fixed it locally and wanted to share it upstream.

Test Plan

We ran it on our test suite using go1.4.2 darwin/amd64. We have version-dependent code which cannot be compiled with earlier versions of Go, unfortunately.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ox retitled this revision from to allow either (<time> seconds) or (<time>s) format for test result time.
ox updated this object.
ox edited the test plan for this revision. (Show Details)
ox added a reviewer: epriestley.
ox edited edge metadata.
  • add tests to check go test parser against go 1.4 test result format

lgtm... (But you need a Blessed Reviewers member to get it in).

epriestley edited edge metadata.

You should mark these files as allowing tabs in .editorconfig to clear lint. I think a block like this will do it:

[src/unit/parser/__tests__/testresults/go.*]
indent_style =
This revision now requires changes to proceed.Apr 21 2015, 6:52 PM

strangely enough that config is already there. Maybe it's a linter bug?

ox requested a review of this revision.Apr 21 2015, 7:01 PM
ox edited edge metadata.
epriestley edited edge metadata.

Strange indeed.

This revision is now accepted and ready to land.Apr 21 2015, 7:02 PM
This revision was automatically updated to reflect the committed changes.