Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH4055: Add task skip reason to task summary output #4056

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

gep13
Copy link
Member

@gep13 gep13 commented Nov 7, 2022

Via a new setting, --Settings_UseSpectreConsoleForConsoleOutput, it is
now possible to output the task headers, and task summary using
Spectre.Console. This allows for the easy addition of a new column in
the task summary, which includes information about why any given task
has been skipped.

The old CakeReportPrinter is still in play, but some implementation has
been moved from within the DefaultExecutionStrategy to the reporter
class. Depending on the setting mentioned above, either the
Spectre.Console version of the reporter will be added to the IoC
container, or the old version will be in place.

Fixes #4055

@gep13
Copy link
Member Author

gep13 commented Nov 7, 2022

Original Cake output:

image

Spectre.Console Output with no tasks being skipped:

image

Spectre.Console Output with a task that is being skipped:

image

@gep13 gep13 force-pushed the skipped_task_in_summary branch from 20afe86 to ff86774 Compare November 7, 2022 21:35
gep13 added 2 commits November 8, 2022 00:23
This was showing up as a warning within Visual Studio.
Via a new setting, --Settings_UseSpectreConsoleForConsoleOutput, it is
now possible to output the task headers, and task summary using
Spectre.Console.  This allows for the easy addition of a new column in
the task summary, which includes information about _why_ any given task
has been skipped.

The old CakeReportPrinter is still in play, but some implementation has
been moved from within the DefaultExecutionStrategy to the reporter
class.  Depending on the setting mentioned above, either the
Spectre.Console version of the reporter will be added to the IoC
container, or the old version will be in place.

* fixes cake-build#4055
@devlead devlead force-pushed the skipped_task_in_summary branch from ff86774 to 03b6647 Compare November 7, 2022 23:25
Copy link
Member

@devlead devlead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@devlead devlead merged commit 02aaa08 into cake-build:develop Nov 7, 2022
@devlead
Copy link
Member

devlead commented Nov 7, 2022

@gep13 your changes have been merged, thanks for your contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add column to summary to include skip reason
2 participants