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

feat: implement bats test runner #699

Merged
merged 4 commits into from
Dec 20, 2023
Merged

feat: implement bats test runner #699

merged 4 commits into from
Dec 20, 2023

Conversation

thesayyn
Copy link
Member

Type of change

  • New feature or functionality (change which adds functionality)
  • Relevant documentation has been updated

Test plan

  • New test cases added

@@ -103,6 +104,81 @@ def register_tar_toolchains(name = DEFAULT_TAR_REPOSITORY, register = True):
user_repository_name = name,
)

DEFAULT_BATS_REPOSITORY = "bats"

DEFAULT_BATS_CORE_VERSION = "v1.10.0"
Copy link
Member

Choose a reason for hiding this comment

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

We don't want to make all these the latest version?

Copy link
Member Author

Choose a reason for hiding this comment

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

these are all latest versions as of today.

Copy link
Member

Choose a reason for hiding this comment

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

I mean doing = BATS_CORE_VERSIONS[-1] or whatever the syntax would be...

@jbedard
Copy link
Member

jbedard commented Dec 20, 2023

Did you try this out in silo?

@thesayyn
Copy link
Member Author

Did you try this out in silo?

Not directly, just added usages there as tests here.

lib/private/bats.bzl Outdated Show resolved Hide resolved
@alexeagle
Copy link
Member

@jmmv do you have any input about this as a comparison with https://github.com/jmmv/rules_shtk/ ?

Copy link
Member

@kormide kormide left a comment

Choose a reason for hiding this comment

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

🚀

@thesayyn
Copy link
Member Author

before i merge, let me try this on rules_oci.

@thesayyn thesayyn enabled auto-merge (squash) December 20, 2023 21:08
@thesayyn thesayyn merged commit 4f6b4bd into main Dec 20, 2023
70 checks passed
@thesayyn thesayyn deleted the bats_runner branch December 20, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants