alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
275 stars 40 forks source link

Passing custom arguments to py.test #15

Closed ktosiek closed 10 years ago

ktosiek commented 10 years ago

Would it be possible to have a per-buffer custom arguments to pass to py.test? I'd like to pass --reuse-db in all my Django projects by default when developing, but I'd rather not add it to pytest.ini

alfredodeza commented 10 years ago

This is a tricky one. I guess we could allow it, the big issue here is that the plugin relies on the fact that the output generated can:

--reuse-db sounds good, but if I where to allow anything else it means that any of the two points above can change and break the plugin.

alfredodeza commented 10 years ago

Closing as this probably is not a good idea for pytest.vim. If you think there might be a good way around it feel free to re-open