The problem with Lightning connectors is that there are little ICs within the connector. MFi certified cables should work properly for connections to computer. Non-certified ones seem OK for charging.
I struggle to justify the high price of genuine Apple cables given the poor quality cable sheath that degrades over time through contact with fingers.
Have tried loads of alternative cables. Most fail over several months due largely to poor quality plating on the lightning connector, presumed heating and burnout. I suspect dimensions and contact pressure may not be so well controlled in cheap products. So the cheap chinese cables that cost 1/10 of MFi certified ones may last 1/5 of the time. I do like the functionality of cables with LED light on the lightning end indicating live power is available.
Cheap ALDI Bauhn charge/headphone lightning adapter works sometimes. Often seems to require flipping the connector to permit the iPhone to recognise the headset.
Recently got cheap MFi certified cables from Daiso for ¥850.
Wikipedia describes the pinouts but not the chip authentication.
https://en.wikipedia.org/wiki/Lightning_(connector)
On the testing side, I found on Aliexpress that WITRN makes WITRN-X (MFi version) USB tester that permits MFi testing of cables. The official WITRN websigte has no mention of this product. AliExpress bait and switch suggests this product is USD5 but the tester is actually as low as USD56.
Basic hobbyist testing would be feasible with a lightning socket breakout board - problem is the quality of the board connector could affect results as much as a cheap cable. Not sure how to get a high quality lighting socket on a breakout board.
The FNIRSI FNB58 USB tester I have can test USB cables using a constant current reference load. So it could probably test lightning cables with a suitable lighting socket to USB adapter. FNIRSI doesn't appear to sell the required constant current reference load, so still looking for one.