Add todo as an annotation for the describe/test #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This PR introduces a new
.todofunctionality to bothtestanddescribeblocks, expanding the testing framework's capabilities to support marking tests or test groups as "to-do". These changes make it easier to track planned or incomplete tests while maintaining a clear overview of their status within test runs and reports. Additional improvements include UI updates to the HTML reporter, statistics tracking, and internal consistency updates.Changelog:
Core Functionality Updates:
Added
.todosupport:test.todo(title): Marks an individual test as "to-do" for tracking purposes. These tests will not be executed but will appear in the test results as pending.describe.todo(title): Marks an entire test group as "to-do". This is useful for planning feature-related tests that are not yet implemented.Example Usage:
Updated test processing logic:
testanddescribefunctions to handle atodostatus..todotests/groups:todo: trueto the test/group object.numTodocounter inresult, which increments whenever a.todois encountered.Reporting Updates:
Terminal Output:
.todowill appear in the terminal output labeled asTODO, highlighted with a yellow indicator (using◦).HTML Reporter:
.todotests in the report.Todostatistics block..todotests, using a yellow color scheme (#ff9800) to differentiate them visually from passed, failed, or skipped tests..todotests display(TODO)next to their name in the report.