Skip to content

[#187] Remove tasty* dependencies#198

Merged
vrom911 merged 7 commits intokowainik:masterfrom
dalpd:187-remove-tasty
Oct 1, 2019
Merged

[#187] Remove tasty* dependencies#198
vrom911 merged 7 commits intokowainik:masterfrom
dalpd:187-remove-tasty

Conversation

@dalpd
Copy link
Copy Markdown
Contributor

@dalpd dalpd commented Oct 1, 2019

Resolves #187

Checklist:

HLint

  • I've changed the exposed interface (add new reexports, remove reexports, rename reexported things, etc.).
    • I've updated hlint.dhall accordingly to my changes (add new rules for the new imports, remove old ones, when they are outdated, etc.).
    • I've generated the new .hlint.yaml file (see this instructions).

General

  • I've updated the CHANGELOG with the short description of my latest changes.
  • All new and existing tests pass.
  • I keep the code style used in the files I've changed (see style-guide for more details).
  • I've used the stylish-haskell file.
  • My change requires the documentation updates.
    • I've updated the documentation accordingly.
  • I've added the [ci skip] text to the docs-only related commit's name.

@dalpd dalpd changed the title 187 remove tasty [#187] remove tasty Oct 1, 2019
@dalpd dalpd changed the title [#187] remove tasty [#187] Remove tasty* dependencies Oct 1, 2019
Copy link
Copy Markdown
Member

@vrom911 vrom911 left a comment

Choose a reason for hiding this comment

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

Very nice work! I have a few minor comments only 🙂

, testProperty "Text to ByteString invertible" prop_TextToBytes
, testProperty "ByteString to Text or String invertible" prop_BytesTo
hedgehogTestList :: [IO Bool]
hedgehogTestList = [utfTest, listTest, logicTest]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would move this function above the comment as the comment is related to utfProps function and co.

module Test.Relude.Property
( hedgehogTestTree
) where
( hedgehogTestList
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

By the style guide we use in the project, the previous indentation was correct, could we get back to that? 🙂

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, sorry about that. 😅

-- logicM
----------------------------------------------------------------------------

logicTest :: IO Bool
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess it's okay to keep Prop suffixes to all property function, as they still contain property tests. There are ordinary unit tests for which suffix Test is more suitable 🙂

test/Spec.hs Outdated

main :: IO ()
main = defaultMain hedgehogTestTree
main = sequence_ hedgehogTestList
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would prefer to use checkParallel instead of checkSequential. And also use the following style of tests from membrain:

These several lines are required to make tests work smoothly on Windows and on various CI services.

Copy link
Copy Markdown
Contributor

@chshersh chshersh left a comment

Choose a reason for hiding this comment

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

@dalpd Thanks for the contribution! Looks neat 👍

Copy link
Copy Markdown
Member

@vrom911 vrom911 left a comment

Choose a reason for hiding this comment

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

Great! Thanks for your work 🥇

@vrom911 vrom911 added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 1, 2019
@vrom911 vrom911 merged commit d1be9f1 into kowainik:master Oct 1, 2019
@dalpd dalpd deleted the 187-remove-tasty branch October 1, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hacktoberfest https://hacktoberfest.digitalocean.com/ tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove tasty* dependencies

3 participants