Create a unit_test macro#213
Conversation
01027e4 to
3013225
Compare
nettle
left a comment
There was a problem hiding this comment.
I like the idea!
However I would consider not mixing python tests and bazel tests.
But as a prototype it is definitely good!
And, as @Szelethus mentioned, we need a strategy for bazel tests.
And... please dont touch legacy tests - I need them as the reference!
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| exports_files(["grep_check.py"]) |
There was a problem hiding this comment.
I guess this should not be needed
There was a problem hiding this comment.
Actually, I do need it.
Without it, the grep_check.py file would need to be in the same directory where the tests are defined.
I'm completely lost as to what this means. |
ffeae11 to
3e71779
Compare
3e71779 to
f578d76
Compare
Allow accepting multiple files Remove incorrect help (we cannot check log files of failing tests)
Since tests are not being invoked from a python file anymore we need to run bazel test //...
f578d76 to
41ccf6b
Compare
|
I have left this patch alone for a long time 😅. So I realized that almost every unit test (except cache tests) is convertable to this format. |
Why:
We want to integrate our tests into Bazel.
What:
Addresses:
#210
Notes:
In very old Bazel versions (older than 6.4.0),
bazel test ...must get the flag:--experimental_cc_implementation_deps.