ufierro / go-junit2immudb

Small CLI Tool to store test artifacts in a tamperproof way
2 stars 0 forks source link

Improve logic for finding tables using the original name #3

Closed ufierro closed 3 years ago

ufierro commented 3 years ago

Test suite names are manipulated to fit into a table thus stripping them of special characters. This is frail since stripped names are NOT stored in relation to the original one.

One option would be to create a mapping table so that original values are kept as VARCHAR, so that an original test suite name can be used to search for ( SELECT M_NAME FROM NAME_MAP WHERE OG_NAME = "Some test suite with() a weird name" Returning something like --> Some_test_suite_with_a_weird_name ) and then used to set tableToLookFor