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

Split Property.fs across multiple files #247

Merged
merged 8 commits into from Jan 20, 2021
Merged

Split Property.fs across multiple files #247

merged 8 commits into from Jan 20, 2021

Conversation

ghost
Copy link

@ghost ghost commented Dec 8, 2020

Fixes #246.

Also, while I moved Result<'a> I opted to rename it to Outcome<'a>, therefor this also fixes #181.

@TysonMN
Copy link
Member

TysonMN commented Dec 8, 2020

I love your intensity @adam-becker! Keep on proposing changes like this that you think are an improvement :D

Copy link
Member

@moodmosaic moodmosaic left a comment

Choose a reason for hiding this comment

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

Looking great 👍 If @TysonMN also approves, we can merge it. Shall we wait for v0.9.0 first, or merge it and then do v0.9.0?

src/Hedgehog/Shrink.fs Outdated Show resolved Hide resolved
Copy link
Member

@TysonMN TysonMN left a comment

Choose a reason for hiding this comment

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

This is great. I highly prefer the new organization. I think this can be merged as is.

I left optional comments. I think all of them are independent of this reorganization.

src/Hedgehog/Journal.fs Outdated Show resolved Hide resolved
src/Hedgehog/Journal.fs Outdated Show resolved Hide resolved
src/Hedgehog/Outcome.fs Show resolved Hide resolved
src/Hedgehog/Report.fs Outdated Show resolved Hide resolved
src/Hedgehog/Property.fs Outdated Show resolved Hide resolved
src/Hedgehog/Journal.fs Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Dec 9, 2020

Shall we wait for v0.9.0 first, or merge it and then do v0.9.0?

With all of the suggestions from @TysonMN it might make sense to apply all of them and release 0.9.0 as a breaking version. Although anything before 1.0.0 is free to break things according to SemVer guidelines.

That said, this library does have users and we should probably stuff as many breaking changes into a single version bump, instead of breaking constantly.

@moodmosaic Do we want to make a project for the 0.9.0 release and quantify some breaking work we want to do?

@moodmosaic
Copy link
Member

@moodmosaic Do we want to make a project for the 0.9.0 release and quantify some breaking work we want to do?

This is excellent work! I think we should cut a release first what's in master 'already' and then release this as 0.10.x. We have quite a lot of stuff to be released already so I think we should let our regular users digest these changes in chunks rather than all at once.

@ghost ghost mentioned this pull request Jan 3, 2021
src/Hedgehog/Tuple.fs Show resolved Hide resolved
src/Hedgehog/Tuple.fs Outdated Show resolved Hide resolved
@TysonMN
Copy link
Member

TysonMN commented Jan 11, 2021

I just reviewed again. Looks good to me.

@ghost ghost mentioned this pull request Jan 19, 2021
src/Hedgehog/Util.fs Outdated Show resolved Hide resolved
@moodmosaic
Copy link
Member

Should be ready to merge after resolving the conflicts. I've also left a small comment in #247 (comment).

@moodmosaic moodmosaic mentioned this pull request Jan 19, 2021
Copy link
Member

@moodmosaic moodmosaic left a comment

Choose a reason for hiding this comment

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

Ready to merge after resolving those conflicts. Massive piece of work, @adam-becker, fantastic feedback, @TysonMN.

@ghost
Copy link
Author

ghost commented Jan 20, 2021

The test failed randomly, due to exhausting its discards. I'll make an issue to fix flaky tests.

@moodmosaic
Copy link
Member

One last thing, before we merge, if you open Script.fsx you'll notice that it'll error about some missing references. All we have to do is just add them:

@@ -1,13 +1,18 @@
 #if INTERACTIVE
-#load "Numeric.fs"
+#load "AutoOpen.fs"
+      "Numeric.fs"
       "Seed.fs"
       "Tree.fs"
       "Range.fs"
       "Random.fs"
       "Shrink.fs"
       "Gen.fs"
+      "Journal.fs"
+      "Tuple.fs"
+      "Outcome.fs"
+      "Report.fs"
       "Property.fs"
 #endif
 
 open Hedgehog
 open System

I can make that change myself of course, if you don't have time to do it.

@ghost
Copy link
Author

ghost commented Jan 20, 2021

@moodmosaic Ready to go on this one.

@moodmosaic moodmosaic merged commit 01e4952 into hedgehogqa:master Jan 20, 2021
@moodmosaic
Copy link
Member

🎉

@ghost ghost deleted the split-modules branch January 20, 2021 17:39
@ghost ghost added this to the 0.10.0 milestone Jan 31, 2021
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.

Property.fs is getting messy Hedgehog.ResultModule.map is conflicting with FSharp.Core.ResultModule.map
3 participants