Index | Diary

Journal 2021-06-06

Vim compiler pytest runner

python vim pytest pyscaffold

Vim Test

Does not provide any benefit over the terminal because the QuickFix list is not parsed and linked to the failure.

packadd vim-test
packadd vim-compiler-pytest
let test#enabled_runners = ["python#pytest"]
let g:pytest_compiler_args = "--ff --junit-xml=junit.xml --vim-quickfix"
let g:test#strategy = 'dispatch'
let g:test#vim#term_position = "right"
compiler pytest

Pytest.vim

Page created on 2025-07-03