This is a valid RSS feed.
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
</description>
<title>bbPress Trac</title>
^
</channel>
^
<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>bbPress Trac: Ticket #3610: Upgrading composer, npm and adding wp-env for PHPUnit</title>
<link>https://bbpress.trac.wordpress.org/ticket/3610</link>
<description><p>
After checking buddypress docs, I noticed that they were using wp-env, which is massive for WP development with Docker, plus the complimentary scripts for PHPUnit testing with WP-Env running in the background.
</p>
<p>
First, trying to make my way through it, I noticed that both <code>composer.json</code> and <code>package.json</code> had dependencies issues.
</p>
<p>
For <code>package.json</code>, <code>stylelint</code> could not be in the latest version, only 14 or lower worked. And some other dependencies broke. So I've fixed all versions to make it happen
Same for <code>composer.json</code>, I simply upgraded to the latest <code>phpcodesniffer-composer-installer</code> compatible with the latest PHP 8+, and added PHPUnit 9 because I noticed that 10 and 11 were breaking tests. I will be opening an issue to sort this specifically in the future.
</p>
<p>
After this, for now, I've introduced two basic scripts similarly to the Buddypress implementation
</p>
<p>
One for WP-ENV
</p>
<p>
<code>npm run wp-env start</code>
</p>
<p>
Which runs the WP virtual environment via docker, and through <code>.wp-env.json</code>, we can define to bring the root, bbPress folder to it, install the plugin and ready to rumble.
</p>
<p>
And then another script for basic PHPUnit running.
</p>
<p>
<code>npm run test-php</code>
</p>
<p>
Probably more scripts should be added in the future, but this is just a proof of concept to have this up and running.
</p>
<p>
Furthermore, I've added the necessary tweaks in the repo to start passing test with this script command, removing all deprecation warnings for PHP 8.2.
</p>
<p>
For now, I think this is ideal to have a good and more modern dev environment.
</p>
</description>
<language>en-us</language>
<image>
<title>bbPress Trac</title>
<url>https://bbpress.trac.wordpress.org/chrome/site/your_project_logo.png</url>
<link>https://bbpress.trac.wordpress.org/ticket/3610</link>
</image>
<generator>Trac 1.2.2</generator>
<item>
<dc:creator>SirLouen</dc:creator>
<pubDate>Sat, 02 Nov 2024 02:55:53 GMT</pubDate>
<title>attachment set</title>
<link>https://bbpress.trac.wordpress.org/ticket/3610</link>
<guid isPermaLink="false">https://bbpress.trac.wordpress.org/ticket/3610</guid>
<description>
<ul>
<li><strong>attachment</strong>
set to <em>wp-env-phpunit-upgrade.patch</em>
</li>
</ul>
<p>
This patch upgrades build tools for WP-ENV and PHPUnit working over it
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>prbot</dc:creator>
<pubDate>Sat, 02 Nov 2024 03:06:03 GMT</pubDate>
<title>keywords changed</title>
<link>https://bbpress.trac.wordpress.org/ticket/3610#comment:1</link>
<guid isPermaLink="false">https://bbpress.trac.wordpress.org/ticket/3610#comment:1</guid>
<description>
<ul>
<li><strong>keywords</strong>
<em>has-unit-tests</em> added
</li>
</ul>
<p>
<em>This ticket was mentioned in <a class="ext-link" href="https://github.com/bbpress/bbPress/pull/18"><span class="icon"></span>PR #18</a> on <a class="ext-link" href="https://github.com/bbpress/bbPress/"><span class="icon"></span>bbpress/bbPress</a> by <a class="ext-link" href="https://profiles.wordpress.org/sirlouen/"><span class="icon"></span>@SirLouen</a>.</em>
As described here:
</p>
<p>
<a class="ext-link" href="https://bbpress.trac.wordpress.org/ticket/3610"><span class="icon"></span>https://bbpress.trac.wordpress.org/ticket/3610</a>
</p>
<p>
After checking buddypress docs, I noticed that they were using wp-env, which is massive for WP development with Docker, plus the complimentary scripts for PHPUnit testing with WP-Env running in the background.
</p>
<p>
First, trying to make my way through it, I noticed that both <code>composer.json</code> and <code>package.json</code> had dependencies issues.
</p>
<p>
For <code>package.json</code>, <code>stylelint</code> could not be in the latest version, only 14 or lower worked. And some other dependencies broke. So I've fixed all versions to make it happen
Same for <code>composer.json</code>, I simply upgraded to the latest <code>phpcodesniffer-composer-installer</code> compatible with the latest PHP 8+, and added PHPUnit 9 because I noticed that 10 and 11 were breaking tests. I will be opening an issue to sort this specifically in the future.
</p>
<p>
After this, for now, I've introduced two basic scripts similarly to the Buddypress implementation
</p>
<p>
One for WP-ENV
</p>
<pre class="wiki">npm run wp-env start
</pre><p>
Which runs the WP virtual environment via docker, and through <code>.wp-env.json</code>, we can define to bring the root, bbPress folder to it, install the plugin and ready to rumble.
</p>
<p>
And then another script for basic PHPUnit running.
</p>
<pre class="wiki">npm run test-php
</pre><p>
Probably more scripts should be added in the future, but this is just a proof of concept to have this up and running.
</p>
<p>
Furthermore, I've added the necessary tweaks in the repo to start passing test with this script command, removing all deprecation warnings for PHP 8.2.
</p>
<p>
For now, I think this is ideal to have a good and more modern dev environment.
</p>
</description>
<category>Ticket</category>
</item>
</channel>
</rss>
If you would like to create a banner that links to this page (i.e. this validation result), do the following:
Download the "valid RSS" banner.
Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)
Add this HTML to your page (change the image src
attribute if necessary):
If you would like to create a text link instead, here is the URL you can use: