Skip to content

Add support for bat-core #38

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

Open
mrzarquon opened this issue Sep 10, 2021 · 0 comments
Open

Add support for bat-core #38

mrzarquon opened this issue Sep 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mrzarquon
Copy link
Contributor

bat-core is a bash testing framework that we should do more work around:

https://bats-core.readthedocs.io/en/stable/index.html

It allows for us to test that snyk-bulk is detecting the right number of projects at a minimum for each languages entrypoint.

MVP:

  • For each language, test that running a snyk bulk --test --test-count returns a predetermined number of tests
  • Each language will have it's own series of a tests in tests/{language}
  • Keeping with our test matrix practice, we will then add a single job that will run a bats tests against name: Test ${{ matrix.language }}

Other notes

  • Long term we should plan on a smarter smoke test (ie, if only entrypoints/python.sh is modified, just run a python language job, but if cmdline.sh or util.sh - the common libraries - then run all languages)
  • a 'release' job will require all the matrix tests having to pass before tagging a release
@mrzarquon mrzarquon added the enhancement New feature or request label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant