Commit Graph

  • fb0aeb9fda testdata: gofmt testdata/src Joël Stemmer 2022-05-21 14:19:38 +01:00
  • d2592490b6 junit: Include output in JUnit report for successful tests and benchmarks Joël Stemmer 2022-04-01 20:41:31 +01:00
  • a4c479dbbb gtr: Reset builder state after the end of a test or benchmark Joël Stemmer 2022-03-20 00:30:16 +00:00
  • 4d05b2dc3f Regenerate testdata files Joël Stemmer 2022-05-13 21:55:44 +01:00
  • df7394c77c Fix cmp.Diff argument order in tests Joël Stemmer 2022-05-07 12:59:39 +01:00
  • 7c195be87f Do not trim output whitespace prefix Joël Stemmer 2022-05-13 21:01:49 +01:00
  • 4976b9b9ae Strip testdata path from subtests name v2.0.0-beta1 Joël Stemmer 2022-04-21 20:42:22 +01:00
  • 49cfa14c14 Update flags section in README.md Joël Stemmer 2022-04-20 23:23:04 +01:00
  • 3260a9d2e0 Move common go-junit-report code into separate internal package Joël Stemmer 2022-04-06 00:52:52 +01:00
  • d84b066208 Move packages out of pkg/ Joël Stemmer 2022-04-20 19:34:40 +01:00
  • 7b21e70768 parser/gotest: rename New/NewJSON -> NewParser/NewJSONParser Joël Stemmer 2022-04-04 23:54:04 +01:00
  • c289a62ec0 Update README.md and mention support for go test -json + example Joël Stemmer 2022-04-02 00:41:20 +01:00
  • 1b70a28601 Create report.xml files for remaining json tests Joël Stemmer 2022-04-01 00:46:41 +01:00
  • d966e01f2a Create report.xml for failed and skipped benchmarks testcase Joël Stemmer 2022-03-31 23:11:22 +01:00
  • 84c3710523 junit: Improve benchmark total time calculation Joël Stemmer 2022-04-01 00:31:04 +01:00
  • 969fc17b96 junit: Improve benchmark grouping and add tests Joël Stemmer 2022-04-01 00:29:54 +01:00
  • 125573d6fc Fix incorrect diff error messages in tests Joël Stemmer 2022-03-31 23:08:54 +01:00
  • 044e2fc120 parser/gotest: Add support for skipped and failed benchmarks Joël Stemmer 2022-03-31 23:05:33 +01:00
  • 9cd24c25d1 Add -id flag to generate-golden to generate report for a single testcase Joël Stemmer 2022-03-31 22:46:17 +01:00
  • bbb5123976 junit: Don't lose benchmark results when converting to junit testsuites Joël Stemmer 2022-03-31 22:45:03 +01:00
  • d63613f07a Add testdata for json go test output Joël Stemmer 2019-10-09 00:18:04 +01:00
  • 44187d369e Add testcase for failed and skipped benchmarks Joël Stemmer 2022-03-31 00:46:01 +01:00
  • f355bc72cc Add -parser flag to choose which parser to use Joël Stemmer 2022-03-28 00:01:27 +01:00
  • 1b2039eca6 parser/gotest: Create go test -json parser Joël Stemmer 2019-10-09 00:55:55 +01:00
  • 75d0972dd6 parser/gotest: Only set TimestampFunc when it's not nil Joël Stemmer 2022-03-30 23:55:11 +01:00
  • 6e3153dd44 Refactor and simplify tests Joël Stemmer 2022-03-26 23:15:42 +00:00
  • 752d873a6e testdata: Add extra leading 0 to testdata files Joël Stemmer 2022-03-27 22:57:36 +01:00
  • 03a83721a2 Fix name and add missing test file to testcases Joël Stemmer 2022-03-27 22:50:47 +01:00
  • 0b843fc2b7 gtr,parser/gotest: Move ReportBuilder to gotest package Joël Stemmer 2022-03-27 22:26:20 +01:00
  • 9c3fda9259 Move XML writing into separate function Joël Stemmer 2022-03-27 22:21:11 +01:00
  • 733873e344 Update README.md for changes made in v2 Joël Stemmer 2022-03-22 21:59:40 +00:00
  • 26cb3d5eb3 Print JSON instead of raw Go structs for -debug.print-events Joël Stemmer 2022-03-20 22:43:51 +00:00
  • 9e3af115d3 Update flag usage text for some of the flags Joël Stemmer 2022-03-20 13:58:31 +00:00
  • 985100c8e8 junit: Move test output within the XML tag for skipped tests Joël Stemmer 2022-03-20 00:09:50 +00:00
  • 1c7fff6728 junit: Rename "Run error" to "Runtime error" for dummy error tests Joël Stemmer 2022-03-20 00:07:39 +00:00
  • 3adb6bab4b testdata: Create generate-golden.go to generate report.xml files Joël Stemmer 2022-03-18 22:22:11 +00:00
  • e0a4faed09 fixup: add skipped attr to testsuites Joël Stemmer 2022-03-18 22:17:26 +00:00
  • 4b87b03e55 junit: Use the timestamp from the gtr.Report when creating Testsuites Joël Stemmer 2022-03-15 19:44:26 +00:00
  • b0a9864d1e parser/gotest: Add Option to override the timestamp function Joël Stemmer 2022-03-15 19:41:49 +00:00
  • 3190f85fe3 gtr: Add Timestamp field to Package Joël Stemmer 2022-03-15 19:40:41 +00:00
  • c78e04707f gtr,parser/gotest: move Event and building a report to parser/gotest Joël Stemmer 2022-03-14 23:17:57 +00:00
  • 832cc97037 parser/gotest: refactor parser so Parse is no longer a top level func Joël Stemmer 2022-03-14 23:12:20 +00:00
  • 0e7d095a28 gtr: add documentation to exported types and methods Joël Stemmer 2022-03-14 23:01:04 +00:00
  • 5e492f8212 gtr: rename Package.AddProperty to Package.SetProperty Joël Stemmer 2022-03-14 22:59:44 +00:00
  • 24c2ee41ce parser/gotest: refactor tests to run one test per input line Joël Stemmer 2022-03-14 00:48:00 +00:00
  • 01e84dfcf5 Print arguments when non-flag arguments were set Joël Stemmer 2022-03-13 23:37:56 +00:00
  • 884279de84 Deprecate the -go-version flag Joël Stemmer 2022-03-06 14:53:21 +00:00
  • c50f4331dc Add -prop flag to add properties to a generated report Joël Stemmer 2022-03-13 23:14:09 +00:00
  • 10affc0da1 Store arbitrary key/value properties in Report Joël Stemmer 2022-03-13 22:55:55 +00:00
  • 9aa9bd94d8 gtr: Remove unnecessary TODO Joël Stemmer 2022-03-13 15:07:50 +00:00
  • a77bfe0f1c gtr,junit: move creation of JUnit testsuites from gtr to junit Joël Stemmer 2022-03-13 15:06:32 +00:00
  • 334044509c Remove custom properties parsed from test output Joël Stemmer 2022-03-13 21:26:28 +00:00
  • 01c1e1fc30 Remove v1 parser and formatter packages Joël Stemmer 2022-03-13 00:38:52 +00:00
  • a70d508a2e parser/gotest: support parsing test summaries when there were no tests Joël Stemmer 2022-03-13 00:22:02 +00:00
  • 458fe89a9a Omit empty <properties> tag when there are no properties. Joël Stemmer 2022-03-11 23:36:03 +00:00
  • 43c784a63b Set non-zero exit code for build/run errors when using -set-exit-code Joël Stemmer 2022-03-11 23:18:52 +00:00
  • e6ab84c924 Add -iocopy flag to copy input to stdout Joël Stemmer 2022-03-11 23:05:00 +00:00
  • aecba5f156 Add -in and -out flags to read input from file and write output to file Joël Stemmer 2022-03-11 22:47:06 +00:00
  • cbb95f301a Create exitf function to print message and exit with non-zero exit code Joël Stemmer 2022-03-11 22:46:18 +00:00
  • c8de8e11aa gtr: Remove unused findBenchmark function Joël Stemmer 2022-03-06 14:50:38 +00:00
  • 0c57c726ce junit: Add documentation to the junit package Joël Stemmer 2022-03-06 14:41:02 +00:00
  • 016e21634a gtr: Add documentation to ReportBuilder Joël Stemmer 2022-03-06 14:38:24 +00:00
  • 6b85350845 parser/gotest: Refactor tests to test each line type specifically Joël Stemmer 2022-03-06 00:07:25 +00:00
  • e2a7c1a394 parser/gotest: Add TODO to remove the build_output type Joël Stemmer 2022-03-06 00:06:50 +00:00
  • bab26d76b5 gtr: Write test output to JUnit SystemOut Joël Stemmer 2022-02-27 23:27:22 +00:00
  • 76f68922a2 junit: Output SystemOut and SystemErr contents as CDATA Joël Stemmer 2022-02-27 23:26:11 +00:00
  • 7d75448298 gtr: Remove debug print Joël Stemmer 2022-02-27 23:25:13 +00:00
  • 817a23b10d gtr: Handle end_test events without corresponding run_test event Joël Stemmer 2022-02-27 22:08:50 +00:00
  • 014828bef4 junit: Correctly count skipped tests in junit Testsuite Joël Stemmer 2022-02-24 21:55:05 +00:00
  • dde9ef5310 junit: Change JUnit Result Data field to cdata Joël Stemmer 2022-02-27 21:45:50 +00:00
  • fc0a210dc9 junit: Make failures and errors required fields Joël Stemmer 2022-02-24 23:52:18 +00:00
  • 2ece8eae1a gtr: Set hostname and timestamp fields when creating JUnit Testsuite Joël Stemmer 2022-02-27 21:34:11 +00:00
  • c3acdf13c2 parser/gotest: Remove unnecessary string concatenation in regexSummary Joël Stemmer 2022-02-27 21:23:55 +00:00
  • 1069a04b9f parser/gotest: Fix failing build error test Joël Stemmer 2019-10-08 23:33:41 +01:00
  • cb7f773314 gtr: Add build error test case Joël Stemmer 2019-10-08 23:33:27 +01:00
  • 80a9b62b38 gtr: Fix prefix trimming of test output Joël Stemmer 2019-10-07 01:41:08 +01:00
  • 506a968ade gtr: Handle failed summary when no tests failed Joël Stemmer 2019-10-07 01:17:53 +01:00
  • 4fdb6ca564 gtr: Move tests from build and runtime errors to end of junit report Joël Stemmer 2019-10-07 01:17:20 +01:00
  • 8b3ee42692 Remove v1 parser and formatter tests from go-junit-report_test Joël Stemmer 2022-03-07 00:28:25 +00:00
  • d0cb4ab4a1 Remove unused toXML function from go-junit-report_test Joël Stemmer 2022-03-06 14:50:53 +00:00
  • 0ff7cae1df Drop new properties when comparing against existing testdata Joël Stemmer 2019-10-07 01:01:16 +01:00
  • 5007397e33 gtr: Reset active test when encountering a status line Joël Stemmer 2019-10-07 00:24:42 +01:00
  • f7ae0905a2 gtr: Add support for pause/continue tests Joël Stemmer 2019-10-07 00:24:01 +01:00
  • c845dfac27 gtr: Correctly handle packages without tests Joël Stemmer 2019-10-06 23:49:45 +01:00
  • 9167a5d41d gtr: Add support for runtime/init errors Joël Stemmer 2019-10-06 23:37:51 +01:00
  • ffc33941fa gtr, parser/gotest: Add support for build errors Joël Stemmer 2019-10-06 23:19:58 +01:00
  • b1b88456c1 gtr: Refactor ReportBuilder flush Joël Stemmer 2019-10-06 23:19:29 +01:00
  • 52a5393fd3 gtr: Refactor ReportBuilder Joël Stemmer 2019-10-06 23:18:41 +01:00
  • 3f9d5b62db gtr, parser/gotest: Move output formatting out of parser Joël Stemmer 2019-10-06 23:17:16 +01:00
  • 08a21eb096 parser/gotest: Fix output trimming Joël Stemmer 2019-10-06 19:13:15 +01:00
  • 1563e51b7c gtr: Fix testsuite duration Joël Stemmer 2019-10-06 19:00:22 +01:00
  • d2d65ebe03 gtr: Fix skipped test output Joël Stemmer 2019-10-06 18:58:18 +01:00
  • 824b607642 gtr: Handle coverage events Joël Stemmer 2019-10-06 18:53:25 +01:00
  • ff9ad32c55 Modify expected report for backwards compatibility in new tests Joël Stemmer 2019-10-06 18:53:13 +01:00
  • cb92a4a6c8 Print events for debugging in tests Joël Stemmer 2019-10-06 18:52:46 +01:00
  • 02fb5c657b Update new output tests Joël Stemmer 2019-10-06 17:44:56 +01:00
  • 51ca01beb2 Fix test 08 Joël Stemmer 2019-10-06 17:44:46 +01:00
  • 77ad1709cf gtr: Add default package name to report Joël Stemmer 2019-10-06 17:44:31 +01:00
  • 79753fd332 parser/gotest: Trim tab prefix from output Joël Stemmer 2019-10-06 17:43:06 +01:00
  • 5f2324f6d4 gtr: Fix junit testsuites test count Joël Stemmer 2019-10-06 16:38:42 +01:00