Skip to content

Commit 7d12429

Browse files
authored
show test report (#5)
1 parent a4a0962 commit 7d12429

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/integration-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: write
1013

1114
steps:
1215
- uses: actions/checkout@v3
@@ -31,7 +34,7 @@ jobs:
3134
- name: Install Python dependencies
3235
run: pip install -r scripts/requirements.txt
3336

34-
- name: Build fuzzer in release mode
37+
- name: Build fuzzer
3538
run: cargo build --release
3639

3740
- name: Setup Sui environment
@@ -44,4 +47,7 @@ jobs:
4447

4548
- name: Display test report
4649
if: always()
47-
run: cat test-report.md >> $GITHUB_STEP_SUMMARY
50+
uses: marocchino/sticky-pull-request-comment@v2
51+
with:
52+
path: test-report.md
53+
header: move-fuzzer-test-report

scripts/integration_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,23 +678,19 @@ def generate_report(self):
678678
console.print(table)
679679

680680
# Generate Markdown report using Jinja2
681-
report_template = Template("""# Move Fuzzer Integration Test Report
681+
report_template = Template("""## SUI Fuzzer Integration Test Report
682682
683683
**Generated**: {{ timestamp }}
684684
**Package ID**: {{ package_id }}
685685
**Overall Result**: {{ "PASSED" if all_passed else "FAILED" }}
686686
687-
## Test Results
687+
### Test Results
688688
689689
| Test | Passed | Time |
690690
|------|--------|------|
691691
{%- for result in results %}
692692
| {{ result.name }} | {{ "✓" if result.passed else "✗" }} | {{ "%.1f"|format(result.execution_time) }}s |
693693
{%- endfor %}
694-
695-
## Legend
696-
- **Passed**: Test executed successfully and violations matched expectations
697-
- **Time**: Test execution duration in seconds
698694
""")
699695

700696
# Prepare template data

0 commit comments

Comments
 (0)