Skip to content

Commit 02477ea

Browse files
committed
deploy: 46bf465
1 parent f220df1 commit 02477ea

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

blog/test-classloading-rewrite/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h3 id="known-regressions"><a class="anchor" href="#known-regressions"></a>Known
250250
<p><strong>Config access from JUnit conditions</strong>. Using a <code>ConfigProvider</code> from a custom JUnit condition will <a href="https://github.com/quarkusio/quarkus/issues/47081">trigger a <code>ServiceConfigurationError</code></a>. The workaround is to set the thread context classloader to <code>this.getClass().getClassLoader()</code> before reading config, and then set it back afterwards. This is fixed in 3.23.</p>
251251
</li>
252252
<li>
253-
<p><strong>Nested test issues</strong>. If nested <code>@QuarkusTest</code> tests are mixed in the same project with plain tests, the plain tests <a href="https://github.com/quarkusio/quarkus/issues/47657">will not be able to access Quarkus config</a>, because the thread context classloader does not get correctly reset. As a workaround, you can manually set the thread context classloader to the system classloader in the plain tests. The nested tests also <a href="https://github.com/quarkusio/quarkus/issues/47671">have problems in dev mode</a>. These issues are fixed in 3.23.</p>
253+
<p><strong>Nested test issues</strong>. If nested <code>@QuarkusTest</code> tests are mixed in the same project with plain tests, the plain tests <a href="https://github.com/quarkusio/quarkus/issues/47657">will not be able to access Quarkus config</a>, because the thread context classloader does not get correctly reset. As a workaround, you can manually set the thread context classloader to the system classloader in the plain tests. The nested tests also <a href="https://github.com/quarkusio/quarkus/issues/47671">have problems in dev mode</a>. Most of these issues are fixed in 3.23.</p>
254254
</li>
255255
<li>
256256
<p><strong>junit-platform.properties</strong> Including a <code>junit-platform.properties</code> in a Gradle project <a href="https://github.com/quarkusio/quarkus/issues/47646">causes problems</a> for `@QuarkusTest`s.</p>
@@ -259,7 +259,7 @@ <h3 id="known-regressions"><a class="anchor" href="#known-regressions"></a>Known
259259
<p><strong>Gradle source sets</strong>. In some cases classes in one gradle source set <a href="https://github.com/quarkusio/quarkus/issues/47760">cannot access package-private fields and classes in a different source set</a>. This causes an <code>IllegalAccessError</code>. The workaround is to switch from package-private to public.</p>
260260
</li>
261261
<li>
262-
<p><strong>Eclipse support</strong>. Running <code>QuarkusTest</code> tests from the Eclipse IDE is <a href="https://github.com/quarkusio/quarkus/issues/47656">more challenging</a>. Right-clicking and running individual test methods works, and running a whole package also works. But running at the class level gives an error.</p>
262+
<p><strong>IDE support</strong>. Running <code>QuarkusTest</code> tests from the Eclipse IDE is <a href="https://github.com/quarkusio/quarkus/issues/47656">more challenging</a>. Right-clicking and running individual test methods works, and running a whole package also works. But running at the class level gives an error. Similar, in Visual Studio Code, running all tests in a class or package <a href="https://github.com/quarkusio/quarkus/issues/48014">will fail</a>, but running individual test methods will work.</p>
263263
</li>
264264
<li>
265265
<p><strong>Increased memory footprint running tests.</strong> For suites using multiple profiles and resources, more heap or metaspace may be needed.</p>

feed.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Quarkus</title>
66
<link>https://quarkus.io</link>
77
<description>Quarkus: Supersonic Subatomic Java</description>
8-
<lastBuildDate>Thu, 22 May 2025 03:23:12 +0000</lastBuildDate>
8+
<lastBuildDate>Fri, 23 May 2025 00:05:01 +0000</lastBuildDate>
99

1010

1111
<item>
@@ -1346,7 +1346,7 @@ In practice, there have been a few hiccups and we&amp;#8217;ve also discovered s
13461346
&lt;p&gt;&lt;strong&gt;Config access from JUnit conditions&lt;/strong&gt;. Using a &lt;code&gt;ConfigProvider&lt;/code&gt; from a custom JUnit condition will &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47081&quot;&gt;trigger a &lt;code&gt;ServiceConfigurationError&lt;/code&gt;&lt;/a&gt;. The workaround is to set the thread context classloader to &lt;code&gt;this.getClass().getClassLoader()&lt;/code&gt; before reading config, and then set it back afterwards. This is fixed in 3.23.&lt;/p&gt;
13471347
&lt;/li&gt;
13481348
&lt;li&gt;
1349-
&lt;p&gt;&lt;strong&gt;Nested test issues&lt;/strong&gt;. If nested &lt;code&gt;@QuarkusTest&lt;/code&gt; tests are mixed in the same project with plain tests, the plain tests &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47657&quot;&gt;will not be able to access Quarkus config&lt;/a&gt;, because the thread context classloader does not get correctly reset. As a workaround, you can manually set the thread context classloader to the system classloader in the plain tests. The nested tests also &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47671&quot;&gt;have problems in dev mode&lt;/a&gt;. These issues are fixed in 3.23.&lt;/p&gt;
1349+
&lt;p&gt;&lt;strong&gt;Nested test issues&lt;/strong&gt;. If nested &lt;code&gt;@QuarkusTest&lt;/code&gt; tests are mixed in the same project with plain tests, the plain tests &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47657&quot;&gt;will not be able to access Quarkus config&lt;/a&gt;, because the thread context classloader does not get correctly reset. As a workaround, you can manually set the thread context classloader to the system classloader in the plain tests. The nested tests also &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47671&quot;&gt;have problems in dev mode&lt;/a&gt;. Most of these issues are fixed in 3.23.&lt;/p&gt;
13501350
&lt;/li&gt;
13511351
&lt;li&gt;
13521352
&lt;p&gt;&lt;strong&gt;junit-platform.properties&lt;/strong&gt; Including a &lt;code&gt;junit-platform.properties&lt;/code&gt; in a Gradle project &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47646&quot;&gt;causes problems&lt;/a&gt; for `@QuarkusTest`s.&lt;/p&gt;
@@ -1355,7 +1355,7 @@ In practice, there have been a few hiccups and we&amp;#8217;ve also discovered s
13551355
&lt;p&gt;&lt;strong&gt;Gradle source sets&lt;/strong&gt;. In some cases classes in one gradle source set &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47760&quot;&gt;cannot access package-private fields and classes in a different source set&lt;/a&gt;. This causes an &lt;code&gt;IllegalAccessError&lt;/code&gt;. The workaround is to switch from package-private to public.&lt;/p&gt;
13561356
&lt;/li&gt;
13571357
&lt;li&gt;
1358-
&lt;p&gt;&lt;strong&gt;Eclipse support&lt;/strong&gt;. Running &lt;code&gt;QuarkusTest&lt;/code&gt; tests from the Eclipse IDE is &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47656&quot;&gt;more challenging&lt;/a&gt;. Right-clicking and running individual test methods works, and running a whole package also works. But running at the class level gives an error.&lt;/p&gt;
1358+
&lt;p&gt;&lt;strong&gt;IDE support&lt;/strong&gt;. Running &lt;code&gt;QuarkusTest&lt;/code&gt; tests from the Eclipse IDE is &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/47656&quot;&gt;more challenging&lt;/a&gt;. Right-clicking and running individual test methods works, and running a whole package also works. But running at the class level gives an error. Similar, in Visual Studio Code, running all tests in a class or package &lt;a href=&quot;https://github.com/quarkusio/quarkus/issues/48014&quot;&gt;will fail&lt;/a&gt;, but running individual test methods will work.&lt;/p&gt;
13591359
&lt;/li&gt;
13601360
&lt;li&gt;
13611361
&lt;p&gt;&lt;strong&gt;Increased memory footprint running tests.&lt;/strong&gt; For suites using multiple profiles and resources, more heap or metaspace may be needed.&lt;/p&gt;

working-groups/index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -200,31 +200,31 @@ <h2>Active working groups</h2>
200200

201201
<div class="card">
202202
<div class="card-header">
203-
<p class="card-title">Gizmo 2</p>
203+
<p class="card-title">Test classloading</p>
204204
</div>
205205
<div class="card-body">
206206
<p class="card-text"><span class="key">Status:</span>&nbsp;<span
207207
class="status on-track">on track</span></p>
208-
<p class="card-text"><span class="key">Description:</span>&nbsp;<span class="short-description">Gizmo 2 related tasks
208+
<p class="card-text"><span class="key">Description:</span>&nbsp;<span class="short-description">The goal of this working group is to rewrite Quarkus's test classloading, so that tests are run in the same classloader as the application under tests, and Quarkus extensions can do "Quarkus-y" manipulations of test classes.
209209
</span>
210210
</p>
211-
<p class="card-text"><span class="key">Last Activity:</span>&nbsp;<span class="last-activity">May 21, 2025 </span>
211+
<p class="card-text"><span class="key">Last Activity:</span>&nbsp;<span class="last-activity">May 22, 2025 </span>
212212
</p>
213213

214-
<p class="card-text"><span class="key">Point of Contact:</span>&nbsp;<span class="point-of-contact">@mkouba (@<strong>Martin Kouba</strong> on Zulip)</span>
214+
<p class="card-text"><span class="key">Point of Contact:</span>&nbsp;<span class="point-of-contact">@holly-cummins (@<strong>Holly Cummins</strong> on Zulip)</span>
215215
</p>
216216

217217
</div>
218218
<div class="card-footer">
219219
<div class="icons">
220220

221-
<a href="https://github.com/quarkusio/quarkus/discussions/46627" title="See the working group proposal"><i
221+
<a href="https://github.com/quarkusio/quarkus/discussions/41867" title="See the working group proposal"><i
222222
class="icon fa-regular fa-file-lines"></i></a>&nbsp;
223223

224-
<a href="https://github.com/orgs/quarkusio/projects/43" title="View the working group board"><i
224+
<a href="https://github.com/orgs/quarkusio/projects/30" title="View the working group board"><i
225225
class="icon fa-brands fa-square-github"></i></a>&nbsp;
226226

227-
<a href="https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/Gizmo.202.2Ex.20WG.20chat" title="Discuss about the working group"><i
227+
<a href="https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/WG.20.2330.20Test.20Classloading.20chatter/" title="Discuss about the working group"><i
228228
class="icon fa-solid fa-comments"></i></a>&nbsp;
229229

230230
</div>
@@ -243,7 +243,7 @@ <h2>Active working groups</h2>
243243
<p class="card-text"><span class="key">Description:</span>&nbsp;<span class="short-description">This working group will define and implement a consistent and configurable lifecycle model for Dev Services. It will shift the startup to the correct phase, enable optional reuse across dev and test modes, and clarify teardown and sharing behavior. The goal is to improve the developer experience.
244244
</span>
245245
</p>
246-
<p class="card-text"><span class="key">Last Activity:</span>&nbsp;<span class="last-activity">May 20, 2025 </span>
246+
<p class="card-text"><span class="key">Last Activity:</span>&nbsp;<span class="last-activity">May 22, 2025 </span>
247247
</p>
248248

249249
<p class="card-text"><span class="key">Point of Contact:</span>&nbsp;<span class="point-of-contact">@holly-cummins (@<strong>Holly Cummins</strong> on Zulip), @ozangunalp (@<strong>Ozan Günalp</strong> on Zulip )</span>
@@ -270,31 +270,31 @@ <h2>Active working groups</h2>
270270

271271
<div class="card">
272272
<div class="card-header">
273-
<p class="card-title">Test classloading</p>
273+
<p class="card-title">Gizmo 2</p>
274274
</div>
275275
<div class="card-body">
276276
<p class="card-text"><span class="key">Status:</span>&nbsp;<span
277277
class="status on-track">on track</span></p>
278-
<p class="card-text"><span class="key">Description:</span>&nbsp;<span class="short-description">The goal of this working group is to rewrite Quarkus's test classloading, so that tests are run in the same classloader as the application under tests, and Quarkus extensions can do "Quarkus-y" manipulations of test classes.
278+
<p class="card-text"><span class="key">Description:</span>&nbsp;<span class="short-description">Gizmo 2 related tasks
279279
</span>
280280
</p>
281-
<p class="card-text"><span class="key">Last Activity:</span>&nbsp;<span class="last-activity">May 20, 2025 </span>
281+
<p class="card-text"><span class="key">Last Activity:</span>&nbsp;<span class="last-activity">May 22, 2025 </span>
282282
</p>
283283

284-
<p class="card-text"><span class="key">Point of Contact:</span>&nbsp;<span class="point-of-contact">@holly-cummins (@<strong>Holly Cummins</strong> on Zulip)</span>
284+
<p class="card-text"><span class="key">Point of Contact:</span>&nbsp;<span class="point-of-contact">@mkouba (@<strong>Martin Kouba</strong> on Zulip)</span>
285285
</p>
286286

287287
</div>
288288
<div class="card-footer">
289289
<div class="icons">
290290

291-
<a href="https://github.com/quarkusio/quarkus/discussions/41867" title="See the working group proposal"><i
291+
<a href="https://github.com/quarkusio/quarkus/discussions/46627" title="See the working group proposal"><i
292292
class="icon fa-regular fa-file-lines"></i></a>&nbsp;
293293

294-
<a href="https://github.com/orgs/quarkusio/projects/30" title="View the working group board"><i
294+
<a href="https://github.com/orgs/quarkusio/projects/43" title="View the working group board"><i
295295
class="icon fa-brands fa-square-github"></i></a>&nbsp;
296296

297-
<a href="https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/WG.20.2330.20Test.20Classloading.20chatter/" title="Discuss about the working group"><i
297+
<a href="https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/Gizmo.202.2Ex.20WG.20chat" title="Discuss about the working group"><i
298298
class="icon fa-solid fa-comments"></i></a>&nbsp;
299299

300300
</div>

0 commit comments

Comments
 (0)