document generation from tests