add template userfunc for timestamp, with configurable format
Open
Nobody has claimed this yet.
enhancement
good first issue
- Dominant language
- Go
- Stars
- 20
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
New feature: for usage in the test descriptor template json, add a new userfunc that takes the current server timestamp and renders it in the given format spec, as a string.
Proposal:
"param_formatted": "log_{{ timestamp '%H:%m:%s' }}",
"param_unix_stamp_by_default": "log_{{ timestamp }}"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the template userfunc handling for test descriptor JSON and any existing userfunc tests; start there. Confirm the new function renders the current server timestamp with the supplied format and uses a default representation when no format is supplied, matching the examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100