Skip to content

feat(assert): add duration assertions#593

Merged
Chemaclass merged 1 commit intomainfrom
feat/assert-duration
Feb 21, 2026
Merged

feat(assert): add duration assertions#593
Chemaclass merged 1 commit intomainfrom
feat/assert-duration

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

🤔 Background

Adds assertions to verify command execution time, enabling performance testing directly in bashunit tests.

💡 Changes

  • Add assert_duration to verify a command completes within a threshold (inclusive)
  • Add assert_duration_less_than for strict less-than duration checks
  • Add assert_duration_greater_than to verify minimum execution time
  • Uses the framework's portable bashunit::clock::now for cross-platform millisecond measurement

Add assert_duration, assert_duration_less_than and
assert_duration_greater_than for verifying command execution time.
Uses the framework's portable clock for cross-platform support.
@Chemaclass Chemaclass added the enhancement New feature or request label Feb 21, 2026
@Chemaclass Chemaclass self-assigned this Feb 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ Contributor Report

User: @Chemaclass
Status: Passed (13/13 metrics passed)

Metric Description Value Threshold Status
PR Merge Rate PRs merged vs closed 93% >= 30%
Repo Quality Repos with ≥100 stars 6 >= 0
Positive Reactions Positive reactions received 157 >= 1
Negative Reactions Negative reactions received 0 <= 5
Account Age GitHub account age 4569 days >= 30 days
Activity Consistency Regular activity over time 108% >= 0%
Issue Engagement Issues with community engagement 0 >= 0
Code Reviews Code reviews given to others 173 >= 0
Merger Diversity Unique maintainers who merged PRs 8 >= 2
Repo History Merge Rate Merge rate in this repo 89% >= 0%
Repo History Min PRs Previous PRs in this repo 128 >= 0
Profile Completeness Profile richness (bio, followers) 100 >= 0
Suspicious Patterns Spam-like activity detection 0 N/A

Contributor Report evaluates based on public GitHub activity. Analysis period: 2025-02-21 to 2026-02-21

@Chemaclass Chemaclass merged commit a1241a0 into main Feb 21, 2026
26 checks passed
@Chemaclass Chemaclass deleted the feat/assert-duration branch February 21, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant