It would be great if the testcase could set up its own environment so it can run everywhere.
$ LC_ALL=C.UTF-8 ./tests/t_kraftdoc
********* Start testing of T_KraftDoc *********
Config: Using QtTest library 5.15.12, Qt 5.15.12 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20230801), arch unknown
QDEBUG : T_KraftDoc::initTestCase() locateFile could not find file "dbmigrate/sqlite3/10_dbmigrate.sql"
QDEBUG : T_KraftDoc::initTestCase() locateFile could not find file "dbinit/sqlite3/10_dbmigrate.sql"
QDEBUG : T_KraftDoc::initTestCase() locateFile could not find file "database/sqlite3/10_dbmigrate.sql"
QDEBUG : T_KraftDoc::initTestCase() ###### Failed SQL Command "INSERT INTO tmp_attrib (hostObject, hostId, name, value, valueIsList) SELECT hostObject, hostId, name, value, 0 FROM attributes;" : "no such table: attributes Unable to execute statement"
QDEBUG : T_KraftDoc::initTestCase() ###### Failed SQL Command "ALTER TABLE attributes RENAME TO attributes_unused;" : "no such table: attributes Unable to execute statement"
PASS : T_KraftDoc::initTestCase()
QDEBUG : T_KraftDoc::checkTablesExist() checking colum "tagTmplID"
QDEBUG : T_KraftDoc::checkTablesExist() checking colum "sortkey"
QDEBUG : T_KraftDoc::checkTablesExist() checking colum "name"
QDEBUG : T_KraftDoc::checkTablesExist() checking colum "description"
QDEBUG : T_KraftDoc::checkTablesExist() checking colum "color"
PASS : T_KraftDoc::checkTablesExist()
QDEBUG : T_KraftDoc::sumPerTag() Expanded text is "This is a template test with 63.00"
FAIL! : T_KraftDoc::sumPerTag() Compared values are not the same
Actual (expanded): "This is a template test with 63.00"
Expected (shouldBe): "This is a template test with 63,00\u00A0\u20AC"
Loc: [/home/t-8ch/src/kraft/tests/t_kraftdoc.cpp(111)]
QDEBUG : T_KraftDoc::sumPerTagBrutto() Expanded text is "This is a template test with 63.00 and 74.97 and 11.97"
FAIL! : T_KraftDoc::sumPerTagBrutto() Compared values are not the same
Actual (expanded): "This is a template test with 63.00 and 74.97 and 11.97"
Expected (shouldBe): "This is a template test with 63,00\u00A0\u20AC and 74,97\u00A0\u20AC and 11,97\u00A0\u20AC"
Loc: [/home/t-8ch/src/kraft/tests/t_kraftdoc.cpp(131)]
QDEBUG : T_KraftDoc::sumPerTagBruttoNull() Expanded text is "This is a template test with 0.00 and 0.00 and 0.00"
FAIL! : T_KraftDoc::sumPerTagBruttoNull() Compared values are not the same
Actual (expanded): "This is a template test with 0.00 and 0.00 and 0.00"
Expected (shouldBe): "This is a template test with 0,00\u00A0\u20AC and 0,00\u00A0\u20AC and 0,00\u00A0\u20AC"
Loc: [/home/t-8ch/src/kraft/tests/t_kraftdoc.cpp(151)]
FAIL! : T_KraftDoc::sumPerTagNoMatch() Compared values are not the same
Actual (expanded): "This is a template test with 0.00"
Expected (shouldBe): "This is a template test with 0,00\u00A0\u20AC"
Loc: [/home/t-8ch/src/kraft/tests/t_kraftdoc.cpp(168)]
PASS : T_KraftDoc::ifHasTag()
PASS : T_KraftDoc::ifHasTagNoEnd()
PASS : T_KraftDoc::ifHasTagDoesNotHaveTheTag()
PASS : T_KraftDoc::amountOfTag()
FAIL! : T_KraftDoc::dateAddDay() Compared values are not the same
Actual (expanded): "This is 12 days later than 24.01.2020: 5 Feb 2020"
Expected (shouldBe): "This is 12 days later than 24.01.2020: 05.02.2020"
Loc: [/home/t-8ch/src/kraft/tests/t_kraftdoc.cpp(243)]
PASS : T_KraftDoc::cleanupTestCase()
Totals: 7 passed, 5 failed, 0 skipped, 0 blacklisted, 34ms
********* Finished testing of T_KraftDoc *********
It would be great if the testcase could set up its own environment so it can run everywhere.