Convert a test to dump as text.