How to test several files in Github Workflow?
charbull opened this issue · 2 comments
charbull commented
Is it possible to run several tests with abseil? in a github workflow where if one test fails the overall action fails?
Thank you
yilei commented
By "run several tests", I assume you mean serval test files.
-
Do you need abseil for your tests? Does plain
unittest
work for you? It supports Test Discovery which runs tests with a single command, I assume this is possible in github workflow. (Or https://docs.pytest.org/en/latest/?) -
If you do need abseil because the libraries you are testing are using abseil (e.g. for
absl.flags
), similar reasons behind #138 (comment), you might need a higher level script to run each individual test module as main programs.
charbull commented
Thank you that worked ! by relying on unittest discovery