abseil/abseil-py

How to test several files in Github Workflow?

charbull opened this issue · 2 comments

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.

  1. 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/?)

  2. 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.

Thank you that worked ! by relying on unittest discovery