-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Lowercase namespace #1208
Comments
I would love to remove all namespaces from unit and integration tests. They really don't serve a purpose for our tests. Namespaces are useful for libraries that you reference in order to disambiguate class names. But you never reference a set of unit tests for your own code. At least, we don't need to support that if you do for some wild reason. 😛 |
Would you be open to one fat PR that rips out all namespace parts lower than what matches the project? |
Split it up. I worry that one big fat PR will cause problems for everybody else. :) |
Just a heads up - removing the namespaces is likely to cause a whole bunch of indenting changes to the test suite. It's a minor nuisance but things like |
|
An example of what things look like now is |
@M-Zuber that's exactly the issue, and why I kinda put it aside when I started finding these 😢 |
IMO I would do the first option. having a namespace that matches the project name does not create noise (at least to me) - and that is what is included in the default. Is there a setting that prevents VS from tacking on namespace parts to match the file system? |
|
I am voting for leaving a namespace that matches the project name, but dropping any further levels. Files that currently have no namespace can stay that way. @shiftkey @haacked @ryangribble any feedback please? |
It's very unfortunate because not even thinking about files where extra namespace levels were added due to folder path, we seem to have a real mix of unit and integration tests where some files have a namespace and others have none. My OCD wants things to be consistent, particularly now it's been brought to attention (:trollface:) , but yeah im not sure if the code/indentation churn is worth it...
Pretty tough to do when there is inconsistency in the files. Or are you saying the convention test would "pass" if there is no namespace OR a namespace matching project, and would only fail when a namespace was present that didn't match the project? |
Yeah I meant the the test should only fail if there is a namespace and it doesn't match the project |
So how do we reach a consensus on this, so I can either code or close? |
@M-Zuber assigning myself to look at this tomorrow |
👋 Hey Friends, this issue has been automatically marked as |
At some point a folder called
fixtures
was introduced.This lead to a number of classes having the namespace
Octokit.Tests.Integration.fixtures
Will make a PR to fix once #1144 is merged (as it introduces some more files to that namespace)
(Affected Files - potentially more)
The text was updated successfully, but these errors were encountered: