-
Notifications
You must be signed in to change notification settings - Fork 21
Bazel testing fixes #179
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
base: main
Are you sure you want to change the base?
Bazel testing fixes #179
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
| load("@score_tooling//python_basics:defs.bzl", "score_py_pytest", "score_virtualenv") | ||
|
|
||
| # Additional requirements for the tests | ||
| # In order to update the requirements, change the `requirements.in` file and run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nitpick, but:
# In order to update the `requirements.txt` file, modify the `requirements.in` file and run:
# `bazel run //tests/python_test_cases:requirements.update`.
#
# To upgrade all dependencies to their latest versions, run:
# `bazel run //tests/python_test_cases:requirements.update -- --upgrade`.
I also think such info might be helpful in README.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
| @@ -1,14 +1,5 @@ | |||
| # Fully resolved list of dependencies is required by Bazel. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the fully resolved list? Why versions are not longer provided?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our previous usage of requirements file was incorrect. Now when we generate the lockfile it is provided to bazel. Lockfile has all dependencies resolved so we could get rid of frozen versions and cluttered list.
Removed comment.
BUILD
Outdated
| test_suite( | ||
| name = "unit_tests", | ||
| tests = [ | ||
| # C++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant comments? You can infer from the target name, same as You'd do with cit_tests targets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
| name = "unit_tests", | ||
| tests = [ | ||
| # C++ | ||
| "test_kvs_cpp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not require changes, but I'm curious - why C++ UTs do not require full target name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_kvs_cpp is a test suite. Test suites in bazel can be nested.
d59c9a0 to
631876c
Compare
venv setup was incorrect args were not always recognized
add common test suites across repositories
631876c to
9bb83ed
Compare
reference_integrationUTs from
score_persistencyscore#2244