Issue #4 resolved

error: 1: orphan line

lidaobing
created an issue
$ go test -v ./...
?       alipay  [no test files]
?       config  [no test files]
=== RUN TestApp_AssetPath
--- PASS: TestApp_AssetPath (0.00 seconds)
=== RUN TestTrimTransferCeil
--- PASS: TestTrimTransferCeil (0.00 seconds)
=== RUN TestStatusDescription
--- PASS: TestStatusDescription (0.00 seconds)
=== RUN TestCode
--- PASS: TestCode (0.00 seconds)
PASS
ok      controllers 0.024s
?       controllers/api [no test files]
?       controllers/bucket  [no test files]
?       mail    [no test files]
?       models  [no test files]
?       plugins [no test files]
?       templatefunc    [no test files]
?       utils   [no test files]
?       website [no test files]
$ go test -v ./... | go2xunit 
error: 1: orphan line

Comments (3)

  1. lidaobing reporter

    workaround

    $ go test -v ./... | grep -v ^? | go2xunit 
    <?xml version="1.0" encoding="utf-8"?>
    
      <testsuite name="controllers" tests="4" errors="0" failures="0" skip="0">
        <testcase classname="controllers" name="TestApp_AssetPath" time="0.00">
        </testcase>
        <testcase classname="controllers" name="TestTrimTransferCeil" time="0.00">
        </testcase>
        <testcase classname="controllers" name="TestStatusDescription" time="0.00">
        </testcase>
        <testcase classname="controllers" name="TestCode" time="0.00">
        </testcase>
      </testsuite>
    
  2. Log in to comment