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

chore: change lspecIO #53

Merged
merged 1 commit into from
Mar 3, 2025
Merged

chore: change lspecIO #53

merged 1 commit into from
Mar 3, 2025

Conversation

arthurpaulino
Copy link
Member

  • Repurpose LSpec.lspecIO as a CLI function that matches the arguments against test suite names
  • Sunset the old lspec and lspec-ci machinery, as lake test is in place with the @[test_driver] lakefile tag.
  • Remove unnecessary generic code that was never really used for other monads besides IO

Comment on lines +83 to +86
def main := lspecIO $ .ofList [
("aa", aaSuite),
("bb", bbSuite)
]
Copy link
Member

Choose a reason for hiding this comment

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

To make usage abundantly clear, could we add a line of docs saying that you can then run the LSpec tests via lake test or lake test <a|aa> when including the following in lakefile.lean?

@[test_driver]
lean_exe Tests.Main

Even better would be a simple Lake project in Examples/ to show the intended directory structure.

* Repurpose `LSpec.lspecIO` as a CLI function that matches the arguments against
  test suite names
* Sunset the old `lspec` and `lspec-ci` machinery, as `lake test` is in place
  with the `@[test_driver]` lakefile tag.
* Remove unnecessary generic code that was never really used for other monads
  besides `IO`
@arthurpaulino arthurpaulino merged commit fc8f902 into main Mar 3, 2025
@arthurpaulino arthurpaulino deleted the ap/refactor-lspecIO branch March 3, 2025 19:08
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.

2 participants