When disabling both the auto hide and show icon settings of the cast bar module, the spell name and duration texts are not displayed.
Tested under TBC Classic, using casts from the player and a hostile npc with two different layouts attached to the player and target frames.