-
Notifications
You must be signed in to change notification settings - Fork 789
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
fix folder already rendered with same name #247
fix folder already rendered with same name #247
Conversation
|> allPathsSeparator | ||
|> Seq.map (fun (a,b,result) -> TestCaseAttribute(a, b, result)) | ||
|
||
[<Test; TestCaseSource("IsSameDirTestCases")>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our internal build is still on nunit 2.2.2, so TestCaseSource
is not available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont understand, internal ci doesn't run the repo bat files for tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internally, source is in big TFS repo along with other Visual Studio stuff, and has various fixed sets of dependencies. Projects used to build shipping VF# tools are not the same as in this repo (though close), tests are run through different systems. We are looking at unifying/simplifying, but for now NUnit stuff needs to be compatible with 2.2.2.
Thanks for the PR, this will be great to have fixed. Looks like a good set of tests. Overall I'd just recommend adding some comments and refactorings so that it's more clear how exactly this gets validated, and what's considered valid/invalid. |
thx for review @latkin , i'll send an update |
Sry for delay. |
Thx for Ping :) |
Enrico, is there any progress to report on this? Thank you Kevin |
i am near to end, i used lot of time for complete but is going nice. |
What you do is fine mate, and thank you so much for taking on this work. Kevin |
status? :) |
@enricosada I've heard before that this bug is annoying, it will be great to have your fix. Do you have an ETA on an update? |
ba5fa3b
to
6efa855
Compare
i added the new version. the idea is to used a tree structure (the RoseTree) and domain types, and check the tree for the invalid folder logic or others (like remove unused folders) Every node is a ProjectTreeNode (a node in solution explorer):
every node can have children, exactly like solution explorer, so there is not a 1-1 mapping with msbuild items the flow is:
The algorithm use domain types, so we can unit test, instead of run the integration test with full visual studio (slow). |
btw, can i add the FsCheck as reference from nuget? sometime is easier to use that for tests (like path, tree, list) because easy invariant |
I like this, it is a big ambitious fix. We will have to go over the code more thoroughly but it certainly looks, nice with a lot of detailed test cases, thank you for this. However, given where we are in the cycle and how late it is, I think we are going to have to postpone taking this until the next version. We are quite thoroughly locked down right now, and accepting changes only with the minimum necessary footprint changes. It looks like a bunch of opportunistic and good restructuring was done, but we do not really have the runway to ensure that such a big set of changes to our project system do not have any impactful side effects. It is a shame, I was hoping that we would ship Dev 14 with a fix for the issue. We will not decline this pull just keep it until we can accept it into F# V.Next. People should continue to review and thoroughly vet this submission. |
6efa855
to
0898f2e
Compare
@enricosada, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
@enricosada is this big change still beneficial/needed, given that the original bug was fixed? |
Closing this out as original bug has been fixed. Please migrate this work to the tip of OOB and re-open if you'd like to revisit this for an upcoming release. |
fix #246