@@ -120,35 +120,40 @@ When non-nil only ‘test_foo()’ will match, and nothing else."
120
120
(define-transient-command python-pytest-dispatch ()
121
121
" Show popup for running pytest."
122
122
:man-page " pytest"
123
+ :incompatible '((" --exitfirst" " --maxfail=" ))
123
124
:value '(" --color" )
124
- [" Switches"
125
- (" -c" " color" " --color" )
126
- (" -d" " run doctests" " --doctest-modules" )
127
- (" -f" " failed first" " --failed-first" )
128
- (" -l" " show locals" " --showlocals" )
129
- (" -p" " debug on error" " --pdb" )
130
- (" -q" " quiet" " --quiet" )
131
- (" -s" " do not capture output" " --capture=no" )
132
- (" -t" " do not cut tracebacks" " --full-trace" )
133
- (python-pytest:-v)
134
- (" -x" " exit after first failure" " --exitfirst" )]
135
- [" Options"
136
- (" =k" " only names matching expression" " -k=" )
137
- (" =m" " only marks matching expression" " -m=" )
138
- (python-pytest:--tb)
139
- (" =x" " exit after N failures or errors" " --maxfail=" )]
140
- [[" Run tests"
141
- (" t" " Test all" python-pytest)
142
- (" r" " Repeat last test run" python-pytest-repeat)
143
- (" x" " Test last-failed" python-pytest-last-failed)]
144
- [" Run tests for specific files"
145
- (" f" " Test file (dwim)" python-pytest-file-dwim)
146
- (" F" " Test this file" python-pytest-file)
147
- (" m" " Test multiple files" python-pytest-files)
148
- (" m" " Test multiple directories" python-pytest-directories)]
149
- [" Run tests for current function/class"
150
- (" d" " Test def/class (dwim)" python-pytest-function-dwim)
151
- (" D" " Test this def/class" python-pytest-function)]])
125
+ [" Output"
126
+ [(" -c" " color" " --color" )
127
+ (" -q" " quiet" " --quiet" )
128
+ (" -s" " no output capture" " --capture=no" )
129
+ (python-pytest:-v)]]
130
+ [" Selection, filtering, ordering"
131
+ [(" -k" " only names matching expression" " -k=" )
132
+ (" -m" " only marks matching expression" " -m=" )
133
+ " " ] ; ; visual alignment
134
+ [(" --dm" " run doctests" " --doctest-modules" )
135
+ (" --nf" " new first" " --new-first" )
136
+ (" --sw" " stepwise" " --stepwise" )]]
137
+ [" Failures, errors, debugging"
138
+ [(" -l" " show locals" " --showlocals" )
139
+ (" -p" " debug on error" " --pdb" )
140
+ (" -x" " exit after first failure" " --exitfirst" )]
141
+ [(" --ff" " failed first" " --failed-first" )
142
+ (" --ft" " full tracebacks" " --full-trace" )
143
+ (" --mf" " exit after N failures or errors" " --maxfail=" )
144
+ (" --rx" " run xfail tests" " --runxfail" )
145
+ (python-pytest:--tb)
146
+ (" --tr" " debug on each test" " --trace" )]]
147
+ [" Run tests"
148
+ [(" t" " all" python-pytest)]
149
+ [(" r" " repeat" python-pytest-repeat)
150
+ (" x" " last failed" python-pytest-last-failed)]
151
+ [(" f" " file (dwim)" python-pytest-file-dwim)
152
+ (" F" " file (this)" python-pytest-file)]
153
+ [(" m" " files" python-pytest-files)
154
+ (" M" " directories" python-pytest-directories)]
155
+ [(" d" " def/class (dwim)" python-pytest-function-dwim)
156
+ (" D" " def/class (this)" python-pytest-function)]])
152
157
153
158
(define-obsolete-function-alias 'python-pytest-popup 'python-pytest-dispatch )
154
159
@@ -446,7 +451,7 @@ When present ON-REPLACEMENT is substituted, else OFF-REPLACEMENT is appended."
446
451
(transient-define-argument python-pytest:--tb ()
447
452
:description " traceback style"
448
453
:class 'transient-option
449
- :key " =t "
454
+ :key " --tb "
450
455
:argument " --tb="
451
456
:choices '(" long" " short" " line" " native" " no" ))
452
457
0 commit comments