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

Sample PR - Issue2219 remove obsolete attributes #2338

Merged
merged 7 commits into from
Aug 1, 2017

Conversation

stevenaw
Copy link
Member

@stevenaw stevenaw commented Jul 29, 2017

A sample PR for Issue #2219 to visualize the impact of removing obsolete attributes.

@ChrisMaddock
Copy link
Member

ChrisMaddock commented Jul 29, 2017

I'm in favour of merging this into 3.8. I appreciate it doesn't follow SemVer - but we don't follow SemVer too strictly anyway. We should just come to peace with that, and call what we do NUnitVer instead. 😄

They've been obsolete since 3.0, and people have had plenty of time to refactor. What I would like to see is everything that was obsoleted in 3.0 removed in one go, to minimise user disruption. As far as I can see, the only other thing is the Is.StringContaining variants - but it would be good to double check that.

ChrisMaddock
ChrisMaddock previously approved these changes Jul 29, 2017
@@ -38,13 +38,13 @@ public class LiveTest
private PairCounter pairsTested = new PairCounter();

[OneTimeSetUp]
public void TestFixtureSetUp()
public void OneTimeSetUp()
Copy link
Contributor

Choose a reason for hiding this comment

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

Unneeded but OK. We often refer to the OneTimeSetUp of a fixture this way in the docs.

[TestCase(typeof(Class3))]
[TestCase(typeof(Class4))]
[TestCase(typeof(TestSetupClass))]
[TestCase(typeof(TestSearDownClass))]
Copy link
Contributor

Choose a reason for hiding this comment

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

Spelling.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, good catch

@CharliePoole
Copy link
Contributor

Looks good to me as well if you fix the misspelled class name.

@rprouse
Copy link
Member

rprouse commented Jul 31, 2017

I am good with this too. As @CharliePoole says, the spelling needs fixing, but after that, I think we should merge. I like that this only changes things that are easy to update with a global search and replace. I would prefer to deal with changes that will require hand updating as a SemVer breaking change.

@rprouse
Copy link
Member

rprouse commented Jul 31, 2017

@stevenaw if you want to resolve conflicts and fix that one spelling error, I think we can merge this and take the rest of the obsolete code in steps.

@stevenaw
Copy link
Member Author

stevenaw commented Aug 1, 2017

Thanks @rprouse @CharliePoole @ChrisMaddock .
Spelling corrected and conflicts resolved.

Build completes locally, but running the tests locally has 2 failures due to SocketExceptions. I'm assuming it's just related to this #2332 (comment)

@ChrisMaddock
Copy link
Member

Looks good - re-running CI. 🙂

@rprouse
Copy link
Member

rprouse commented Aug 1, 2017

CI passed, merging

@rprouse rprouse merged commit 0097604 into nunit:master Aug 1, 2017
@jnm2 jnm2 mentioned this pull request Sep 2, 2017
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.

None yet

4 participants