Standardize test output format via test/helpers.lua #11
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-lua-common#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Test files use inconsistent summary formats. The parent project steurjan
(DAW/steurjan#134) standardized its test output -- daw-lua-common tests
must match so that a unified
run_tests.shcan parse all output reliably.Current summary variations found in
test/:All UUID tests passed! [OK]--[OK]at end, no labelAll crypto tests passed! [OK]-- same pattern[OK] All 31 yaml tests passed-- no label in parentheses, no count[OK] All 12 time tests passed-- no label[OK] All 11 config_parser tests passed-- no label[OK] All 32 fs tests passed-- no label[OK] All 7 http_client tests passed-- no labelRequired change
Add
test/helpers.luawithsummarize(passed, failed, label):Update all
test/test_*.luafiles to usehelpers.summarize().Standardized format
Deliverables
test/helpers.lua(new file, identical API to DAW/steurjan test/helpers.lua)test/test_uuid.luaupdatedtest/test_json.luaupdatedtest/test_yaml.luaupdatedtest/test_time.luaupdatedtest/test_config_parser.luaupdatedtest/test_fs.luaupdatedtest/test_http_client.luaupdatedtest/test_crypto.luaupdatedos.exit(1)on failureNotes
(daw-lua-common has no external test dependencies by design)
Related
DAW/steurjan#134 (origin of this standard)
test/helpers.lua implements summarize(passed, failed, label) in the standardized format. All test_*.lua files use it. Note: test_http_client.lua from the original deliverables list no longer applies -- see #12.