def collect(self):
_reset_collected_tests()<EOL>filename = self.fspath.basename<EOL>self.fspath.pyimport()<EOL>ns = _current_ns()<EOL>tests = _collected_tests()<EOL>assert tests is not None, "<STR_LIT>"<EOL>for test in tests:<EOL><INDENT>f: TestFunction = test.value<EOL>yield BasilispTestItem(test.name.name, self, f, ns, filename)<EOL><DEDENT>
Collect all of the tests in the namespace (module) given.

        Basilisp's test runner imports the namespace which will (as a side
        effect) collect all of the test functions in a namespace (represented
        by `deftest` forms in Basilisp) into an atom in `basilisp.test`.
        BasilispFile.collect fetches those test functions and generates
        BasilispTestItems for PyTest to run the tests.