Estimating the number of tests in a round
One interesting feature is to have a progress bar to show the progress of the round execution. The rich package offers a nice progress bar that we can use. However, we would need to know the number of tests that will be generated in the round. Previously, we knew this number because all the tests were generated at once.
But now, since the tests are only generated after the previous one has been executed, we don't know the total number of tests. We could estimate it by looking at the TestType
. For instance, if we are in a computing round, we could easily estimate the number of tests by computing the difference between max_computing
and the current number of computing plus one. For the TestType
Striping, we could do the same by looking at the folder length. The tricky one would be for the TestType
Volume.
Task
-
Create a method Round.__remaining_tests()
that returns the estimation of the remaining number of tests of the round.