Adds parse_backtrace function - Using regex gets the line of the backtrace which contains the path of the test file and the id of the failing test function.
Adds get_test_line function - Uses the file path and the test function id from parse_backtrace to read the file and find the the line on which the test function was declared.
Drawbacks:
Currently it will iterate over the test file for each failing test
Issue: closes https://github.com/LimeChain/matchstick/issues/237
What this PR does:
parse_backtrace
function - Using regex gets the line of the backtrace which contains the path of the test file and the id of the failing test function.get_test_line
function - Uses the file path and the test function id fromparse_backtrace
to read the file and find the the line on which the test function was declared.Drawbacks: Currently it will iterate over the test file for each failing test
Screenshots: