Closed alexey-vyskubov closed 3 years ago
@guotin also this will prevent using pytest-rts
for testing itself, which we surely want to do.
Some of the files that start the coverage collection (in pytest_rts/pytest/
) seem to like getting mapped as source files. If the condition is fully removed, then they are often present in the mapping.db
. On the other hand, If the condition is improved to ignore those files only, then the tool can't test them but the tool should work for other directories. Is that good enough?
I think this is fixed now. @guotin @alexey-vyskubov could you please confirm?
I was trying to produce an example for the problem with decorators we discussed, and put my code into
pytest-rts-try-decorators
directory. Because of the (incorrect) hardcoded condition in thesave_mapping_data()
the tool does not work at all:"pytest-rts" in filename
is wrong.