def inline_genitems(self, *args):
rec = self.inline_run("<STR_LIT>", *args)<EOL>items = [x.item for x in rec.getcalls("<STR_LIT>")]<EOL>return items, rec<EOL>
Run ``pytest.main(['--collectonly'])`` in-process.

        Runs the :py:func:`pytest.main` function to run all of pytest inside
        the test process itself like :py:meth:`inline_run`, but returns a
        tuple of the collected items and a :py:class:`HookRecorder` instance.