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

Labels: Add OnOutputOnly option, and deprecate On/All #721

Merged
merged 1 commit into from
Jan 26, 2020

Conversation

ChrisMaddock
Copy link
Member

Fixes #636, the changes as discussed in #630.

This adds OnOutputOnly as a more explicit name for On, and deprecates both On and All - which has been a duplicate of Before for a few releases now. Deprecation is done in the same way as the existing deprecated --params option.

The reasoning for this was to reduce ambiguity in the API. The original options were just On and Off. As new options have been added since version 3.0, On and All have become ambiguous in meaning. On currently represents the most limited option of label output available (only displaying labels for test output, and All displays less labels than the new BeforeAndAfter option. The deprecation message explains which alternative to switch to in each case, and looks like the below.

image

Not the only affect of this is an additional line in the console output - it does not change the exit code of the console, or the TestResults xml.

The old labels are converted to their new terms at the very top level of the console, and all lower functionality and tests removed, to make for easier removal in future. New tests have been added to cover the conversion, while the deprecated options remain. 🙂

@ChrisMaddock ChrisMaddock merged commit d8fa2c1 into master Jan 26, 2020
@ChrisMaddock ChrisMaddock deleted the issue-636 branch January 26, 2020 13:59
andrewimcclement added a commit to andrewimcclement/nunitdocs that referenced this pull request Sep 1, 2023
Note On and All as deprecated.
See nunit/nunit-console#721 and nunit/nunit-console#630 for relevant changes.
SeanKilleen pushed a commit to nunit/docs that referenced this pull request Sep 2, 2023
github-actions bot pushed a commit to nunit/docs that referenced this pull request Sep 2, 2023
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.

Labels option: Rename On as OnOutputOnly, and deprecate On and All
1 participant