Idea: print progress - #14
Conversation
|
Hi, I agree that some more information would be nice. I thought already of the problem, with several strategies:
In the latter option, the current name would be used as the key to the dictionary and the entry would include number of tests and number of failures. Would these options work for your workflow? |
|
I'm slightly in favour of the second option since it gives you the whole picture when the test is completed and it's simpler to share when opening issues. |
|
Thank you for the feedback. I have a number of work-related priorities so I might not be able to implement the dict-based counters in the coming 3 weeks. For early feedback, this is the type of code I'd like to write: call tester%set_name('floating point')
do i = 1, n_fp_tests
call tester%assert_close(x, y)
end do
call tester%set_name('final result')
call tester%assert_true(some_result)so that you could perform many test under one name, while for other names a single test would executed, etc. The code could be used without any test name as well, for simplicity and backwards compatibility. |
This pull request is just to discuss the possibility of labelling tests and printing partial information as the test proceeds.
I see many ways of doing this, including creating and initializing a new
tester_tvariable for each test.The main point here is having a way to identify which test failed with a label. What's your opinion?