This protocol describes the dissection and cultivation of intact testes and germ-line cysts from Drosophila melanogaster pupae. This method allows microscopic observation of spermatogenesis ex vivo. Furthermore, we describe a pharmacological assay of the effect of inhibitors on specific stages of germ-cell development in pupal testes.