Actually update the tag to point to the correct branch (dist) instead of the dev branch.
README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。
README 没有说明硬件要求。
项目说明
这个项目的说明还在生成中,先参考下面「最近发版」和 README。
- v2.6最新正式版2026-05-08 · 2026-05-08 06:39 UTC
- v2.52026-05-07 · 2026-05-07 22:13 UTC
查看更新说明
What's Changed
- Switch to using NodeJS v16 as a action runtime by @webknjaz in https://github.com/test-summary/action/pull/17
- Use HTTPS to link SVG images by @webknjaz in https://github.com/test-summary/action/pull/16
- Bump xml2js from 0.4.23 to 0.5.0 by @dependabot[bot] in https://github.com/test-summary/action/pull/31
- Bump @babel/traverse from 7.20.13 to 7.23.6 by @dependabot[bot] in https://github.com/test-summary/action/pull/36
- HTML escaping of dashboard results by @dil-gschreiber in https://github.com/test-summary/action/pull/26
- Update dependencies by @ethomson in https://github.com/test-summary/action/pull/37
- Bump NodeJS to 20 LTS by @gstokkink in https://github.com/test-summary/action/pull/42
- Use new Github Actions output syntax by @gstokkink in https://github.com/test-summary/action/pull/41
- Include failure or error message on dashboard by @gstokkink in https://github.com/test-summary/action/pull/40
- Don't deference null by @ethomson in https://github.com/test-summary/action/pull/49
- Parse attributeless tags correctly by @sujeet in https://github.com/test-summary/action/pull/55
- add
foldedoption by @braingram in https://github.com/test-summary/action/pull/53 - Check for key existence to identify junit file by @crammond in https://github.com/test-summary/action/pull/52
- ci: update actions versions by @ethomson in https://github.com/test-summary/action/pull/72
- Upgrade to node 24 by @jagthedrummer in https://github.com/test-summary/action/pull/71
- Fix #1 Add support for .trx by @siegfriedpammer in https://github.com/test-summary/action/pull/59
- Updates to use node24 by @CharlieM312 in https://github.com/test-summary/action/pull/66
New Contributors
- @webknjaz made their first contribution in https://github.com/test-summary/action/pull/17
- @dependabot[bot] made their first contribution in https://github.com/test-summary/action/pull/31
- @dil-gschreiber made their first contribution in https://github.com/test-summary/action/pull/26
- @ethomson made their first contribution in https://github.com/test-summary/action/pull/37
- @gstokkink made their first contribution in https://github.com/test-summary/action/pull/42
- @sujeet made their first contribution in https://github.com/test-summary/action/pull/55
- @braingram made their first contribution in https://github.com/test-summary/action/pull/53
- @crammond made their first contribution in https://github.com/test-summary/action/pull/52
- @jagthedrummer made their first contribution in https://github.com/test-summary/action/pull/71
- @siegfriedpammer made their first contribution in https://github.com/test-summary/action/pull/59
- @CharlieM312 made their first contribution in https://github.com/test-summary/action/pull/66
Full Changelog: https://github.com/test-summary/action/commits/v2.5
- v2.42024-06-26 · 2024-06-26 11:07 UTC
查看更新说明
What's Changed
- Don't deference null by @ethomson in https://github.com/test-summary/action/pull/49
Full Changelog: https://github.com/test-summary/action/commits/v2.4
- v2.32024-02-22 · 2024-02-22 10:15 UTC
查看更新说明
What's Changed
- Bump NodeJS to 20 LTS by @gstokkink in https://github.com/test-summary/action/pull/42
- Use new Github Actions output syntax by @gstokkink in https://github.com/test-summary/action/pull/41
- Include failure or error message on dashboard by @gstokkink in https://github.com/test-summary/action/pull/40
New Contributors
- @gstokkink made their first contribution in https://github.com/test-summary/action/pull/42
Full Changelog: https://github.com/test-summary/action/commits/v2.3
- v2.22023-12-12 · 2023-12-12 10:05 UTC
查看更新说明
What's Changed
- Switch to using NodeJS v16 as a action runtime by @webknjaz in https://github.com/test-summary/action/pull/17
- Use HTTPS to link SVG images by @webknjaz in https://github.com/test-summary/action/pull/16
- Bump xml2js from 0.4.23 to 0.5.0 by @dependabot in https://github.com/test-summary/action/pull/31
- Bump @babel/traverse from 7.20.13 to 7.23.6 by @dependabot in https://github.com/test-summary/action/pull/36
- HTML escaping of dashboard results by @dil-gschreiber in https://github.com/test-summary/action/pull/26
- Update dependencies by @ethomson in https://github.com/test-summary/action/pull/37
New Contributors
- @webknjaz made their first contribution in https://github.com/test-summary/action/pull/17
- @dil-gschreiber made their first contribution in https://github.com/test-summary/action/pull/26
Full Changelog: https://github.com/test-summary/action/commits/v2.2
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Test Summary
Produce an easy-to-read summary of your project's test data as part of your GitHub Actions CI/CD workflow. This helps you understand at-a-glance the impact to the changes in your pull requests, and see which changes are introducing new problems.
- Integrates easily with your existing GitHub Actions workflow
- Produces summaries from JUnit XML and TAP test output
- Compatible with most testing tools for most development platforms
- Produces step outputs, so you can pass summary data to other actions
- Customizable to show just a summary, just failed tests, or all test results
- Output can go to the GitHub job summary (default), to a file or
stdout
Getting Started
To set up the test summary action, just add a few lines of YAML to your GitHub Actions workflow. For example, if your test harness produces JUnit XML outputs in the test/results/ directory, and you want the output attached to the job summary, add a new step to your workflow YAML after your build and test step:
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "test/results/**/TEST-*.xml"
if: always()
Update paths to match the test output file(s) that your test harness produces. You can specify glob patterns, including ** to match the pattern recursively. In addition, you can specify multiple test paths on multiple lines. For example:
- name: Test Summary
uses: test-summary/action@v2
with:
paths: |
test-one/**/TEST-*.xml
test-two/results/results.tap
if: always()
Note the
if: always()conditional in this workflow step: you should always use this so that the test summary creation step runs even if the previous steps have failed. This allows your test step to fail -- due to failing tests -- but still produce a test summary.
Generating and uploading a markdown file
You can also generate the summary in a GitHub-flavored Markdown (GFM) file, and upload it as a build artifact, add it to a pull request comment, or add it to an issue. Use the output parameter to define the target file.
For example, to create a summary and upload the markdown as a build artifact:
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "test/results/**/TEST-*.xml"
output: test-summary.md
if: always()
- name: Upload test summary
uses: actions/upload-artifact@v3
with:
name: test-summary
path: test-summary.md
if: always()
Outputs
This action also generates several outputs you can reference in other steps, or even from your job or workflow. These outputs are passed, failed, skipped, and total.
For example, you may want to send a summary to Slack:
- name: Test Summary
id: test_summary
uses: test-summary/action@v2
with:
paths: "test/results/**/TEST-*.xml"
if: always()
- name: Notify Slack
uses: slackapi/[email protected]
with:
payload: |-
{
"message": "${{ steps.test_summary.outputs.passed }}/${{ steps.test_summary.outputs.total }} tests passed"
}
if: always()
Examples
There are examples for setting up a GitHub Actions step with many different platforms in the examples repository.
Options
Options are specified on the with map of the action.
-
paths: the paths for input files (required)
One or more file glob patterns that specify the test results files in JUnit XML or TAP format.-
To specify a single file, provide it directly as a string value to the
pathskey. For example:- uses: test-summary/action@v2 with: paths: "tests/results.xml" -
To specify multiple files, provide them as a multi-line string value to the
pathskey. For example:- uses: test-summary/action@v2 with: paths: | tests-one/results.xml tests-two/results.xml tests-three/results.xml -
You can specify files as a glob patterns, allowing you to use wildcards to match multiple files. For example, to match all files named
TEST-*.xmlbeneath thetestsfolder, recursively:- uses: test-summary/action@v2 with: paths: "test/results/**/TEST-*.xml"
-
-
output: the output file to create (optional)
This is the path to the output file to populate with the test summary markdown data. For example:- uses: test-summary/action@v2 with: paths: "test/results/**/TEST-*.xml" output: "test/results/summary.md"If this is not specified, the output will be to the workflow summary.
This file is GitHub Flavored Markdown (GFM) and may include permitted HTML.
-
show: the test results to summarize in a table (optional) This controls whether a test summary table is created or not, as well as what tests are included. It could beall,none,pass,skip, orfail. The default isfail- that is, the summary table will only show the failed tests. For example, if you wanted to show failed and skipped tests:- uses: test-summary/action@v2 with: paths: "test/results/**/TEST-*.xml" show: "fail, skip" -
folded: display test details in a folded details block (optional) When enabled the details for each test result will be nested in a details blocks which can be expanded by clicking on the test name. This option can betrueorfalse(The default).- uses: test-summary/action@v2 with: paths: "test/results/**/TEST-*.xml" folded: true
FAQ
- How is the summary graphic generated? Does any of my data ever leave GitHub?
None of your data ever leaves GitHub. Test results are read within GitHub Actions by the test-summary action, and a link to an SVG with the test results numbers is created. This the graphic is both fetched and subsequently cached by GitHub's image service. This service provides no referral information to remote hosts. This means that no information at all about your workflow - the repository name, test results, or other information - is available to the image generator service.
Questions / Help / Contact
Have questions? Need help? Visit the discussion forum.
Copyright (c) 2022 Edward Thomson. Available under the MIT license.