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

Refactor tests to centralise the test main for CI #199

Merged
merged 2 commits into from Apr 4, 2018
Merged

Conversation

iamrecursion
Copy link
Contributor

No description provided.

Copy link

@mikusp mikusp left a comment

Choose a reason for hiding this comment

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

I don't see what's the point of making a new package for tests?

@iamrecursion
Copy link
Contributor Author

iamrecursion commented Apr 4, 2018

It makes it easy for the other packages to depend on the centralised common main for running tests in CI. lib is going to be used by luna-core as well, and it didn't make sense to have the same code duplicated a bunch of times.

Copy link

@mikusp mikusp left a comment

Choose a reason for hiding this comment

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

Alright, LGTM

Copy link
Member

@wdanilo wdanilo left a comment

Choose a reason for hiding this comment

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

Thanks for doing it, good to see it refactored!

import System.Directory (createDirectoryIfMissing)
import System.Environment (lookupEnv)
import System.FilePath ((</>))
import Luna.CI
Copy link
Member

Choose a reason for hiding this comment

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

We tend to use qualified imports everywhere. I'd rather use it like:

import qualified Luna.CI as CI
...
main = CI.main Spec.spec

@iamrecursion iamrecursion merged commit 8469163 into master Apr 4, 2018
@iamrecursion iamrecursion deleted the ci-refactor branch April 4, 2018 13:30
turion pushed a commit to turion/luna that referenced this pull request Jun 25, 2019
turion pushed a commit to turion/luna that referenced this pull request Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-tooling Category: tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants