-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fluent Assertions 5 upgrade #34
Conversation
rikrak
commented
Feb 13, 2018
- Upgraded MVC3 project to .NET 4.5
- Upgraded #MVC4 project to .NET 4.5
- Upgraded to Fluent Assertions v5.0.0
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.
There seems to be a lot in the merge commit 011097c. Can you try a rebase to see if you can drop it?
It also looks like we have some broken tests. Can you take a look at those too? |
Ah. That commit (011097c) was me trying to bring my fork up to date. I shall look into a rebase |
I've had a go at doing a rebase, but I'm not sure if it has made any changes. I'm new to git, so I don't know how to check if the rebase has had the desired effect. It's quite possible I've made things worse :-D I've re-run the tests locally on a different machine than I used earlier, and they all pass here. Looking at the appveyor failures, it appears that something is not up to date. The failures it is showing are the same that I had after the initial upgrade to FA. I fixed the tests, and committed them (3323e5b), so all should be good. |
@rikrak thanks. I've rebased your branch (you can see it here), and you're right the tests run locally, so it looks like there is a problem with AppVeyor. Leave it with me while look into the AppVeyor issue. |
Thanks for the help with the rebase. I was somewhat stabbing in the dark. Could it be that the AppVeyor environment compiles under a different configuration (.Net 4.5/.Net Standard/etc.) than I use locally, and that the FA5 assembly returns different error messages depending on the configuration? |
I've just looked into this a little further. Not resolved it, but I did find a clue. Not sure if this is a red-herring, but it looked like a possible cause of the behaviour in appveyor. |
I admit I've not had a lot of time to look into this, but I'm stumped. I'll open an issue over on the main FA repro, as maybe @dennisdoomen or someone else there might have an idea. |
For Reference: FluentAssertions requires a .NET45 of .NetStandard2 build with debug symbols for Unit Tests in order for the Subject Identification to work. see http://fluentassertions.com/documentation.html#subject-identification |
I think if you just switch the unit test projects to build in debug mode for release builds that should fix it. It looks like re-creating your fork may have disconnected this repro from your fork, so you may need to open a new PR. Sorry about that. |
:-D No worries. It's all good learning for me. I'll have a look at it at lunch time |
Superseded by #36. |