Closed PonteIneptique closed 6 years ago
This is the full printout? E.g., there is no introductory message that tests are being started or a final report about the texts? Because this looks a lot like reports about empty or illegal references that comes after the textual table but before the final report. Are there no labels for those lines, e.g., "Empty references found:"?
It is normal that nothing is shown because I did not put verbose or console. But even in other mode, you'd have those remaining print out of context...
Gotcha. I saw -w 7
and read -v 7
. I will take a look and see what is happening.
This seems to be something that was introduced with the empty references test. I will continue to check.
The problem looks to have been with MyCapytain. When I was working on the EmptyReference exception there, I used a print statement for debugging that I accidentally left in there. I will do a PR there to fix it. But I will add a test for it in HookTest as well.
I can't seem to find where this is printing during the tests. When I check stderr and stdout, they are both empty. E.g., the following code (which uses https://github.com/Capitains/HookTest/blob/master/tests/test_run.py#L74-L95):
def test_run_local_no_option_empty_refs(self):
""" Test a run on the local tests passages
This test is specifically to check whether empty references are printed despite --console being False
"""
status, logs = self.hooktest(["./tests/failing_empties", "-w", "3"])
self.assertEqual(len(logs), 0, "There should be no logs")
self.assertEqual(status, "failed", "Test should fail")
We want to get where this test does pass as it is. But right now, it shouldn't because it should produce the artifacts described above. (This test does produce and print these artifacts: https://github.com/Capitains/HookTest/blob/master/tests/test_units.py#L579-L597)
Hey, This being a non obstructing bug, I do not think it's a good idea to test it. It was a bug in another library. Do not worry about it. Sorry for the late weight in, I had a lot on my plate today :)
Thanks for the investigation. Please close if you are okay with my answer :)
OK. Closing. And NP with the late response. I also had other things to do today.
If you look at the following repository https://travis-ci.org/PonteIneptique/digiliblt and you do
hooktest . -w 7
you get