<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pytest on Sawyer Zheng's Blog</title><link>https://elated-raman-42e0c2.netlify.app/tags/pytest/</link><description>Recent content in Pytest on Sawyer Zheng's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Fri, 05 Jan 2024 13:18:49 +0800</lastBuildDate><atom:link href="https://elated-raman-42e0c2.netlify.app/tags/pytest/index.xml" rel="self" type="application/rss+xml"/><item><title>Pytest in Emacs</title><link>https://elated-raman-42e0c2.netlify.app/post/notes/emacs/python-pytest/</link><pubDate>Tue, 14 Mar 2023 00:00:00 +0000</pubDate><guid>https://elated-raman-42e0c2.netlify.app/post/notes/emacs/python-pytest/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;
&lt;h2 id="headline-1"&gt;
项目
&lt;/h2&gt;
&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/wbolster/emacs-python-pytest"&gt;GitHub - wbolster/emacs-python-pytest: run pytest inside emacs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="outline-container-headline-2" class="outline-2"&gt;
&lt;h2 id="headline-2"&gt;
后台使用项目检测工具
&lt;/h2&gt;
&lt;div id="outline-text-headline-2" class="outline-text-2"&gt;
&lt;ul&gt;
&lt;li&gt;projectile&lt;/li&gt;
&lt;/ul&gt;
&lt;div id="outline-container-headline-3" class="outline-3"&gt;
&lt;h3 id="headline-3"&gt;
提示 generic 类型项目
&lt;/h3&gt;
&lt;div id="outline-text-headline-3" class="outline-text-3"&gt;
&lt;p&gt;
问题描述：&lt;/p&gt;
&lt;pre class="example"&gt;
运行python-pytest-function-dwim 命令后跳出错误提示：

projectile--test-name-for-impl-name: Cannot determine a test file
name, one of &amp;#34;test-suffix&amp;#34; or &amp;#34;test-prefix&amp;#34; must be set for project
type ‘generic’
&lt;/pre&gt;
&lt;p&gt;
原因分析：&lt;/p&gt;</description></item></channel></rss>