Re: Looking for help on R-cran-testthat testunit

From: Joseph Mingrone <jrm_at_freebsd.org>
Date: Sun, 24 Aug 2025 18:13:27 UTC
On Thu, 2025-08-14 at 18:05, Nuno Teixeira <eduardo@freebsd.org> wrote:

> Hello,

> Looking for help on R-cran-testthat testunits.
> Failure could be related to our ports framework and need more expertise
> here.

> All help is welcome,
> Thanks!

> https://github.com/r-lib/testthat/issues/2214#issuecomment-3188669439
> https://github.com/r-lib/testthat/issues/2214

Hello Nuno,

When I ran `make test`, it reported errors about missing packages, so I
locally added this to devel/R-cran-testthat/Makefile:

TEST_DEPENDS=	R-cran-covr>0:devel/R-cran-covr \
		ftp/R-cran-curl>0:ftp/R-cran-curl \
		R-cran-rmarkdown>0:textproc/R-cran-rmarkdown \
		R-cran-rstudioapi>0:devel/R-cran-rstudioapi \
		R-cran-S7>0:devel/R-cran-S7 \
		R-cran-shiny>0:www/R-cran-shiny \
		R-cran-usethis>0:devel/R-cran-usethis \
		R-cran-vctrs>0:devel/R-cran-vctrs \
		R-cran-xml2>0:textproc/R-cran-xml2

It still reported that utils, a built-in package, was missing.  After
investigating, I discovered that the DESCRIPTION file for the utils
package was not always installed.  That issue is now fixed as of
a8e266393d86d5f40045c03ee1cda64f323ce6c1.


Now `make test` says
[ FAIL 1 | WARN 12 | SKIP 132 | PASS 943 ]

That one error is related to the 3rd edition stuff that is mentioned in
the devel/R-cran-testthat/Makefile and described at:
https://testthat.r-lib.org/articles/third-edition.html.

Joe