diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 11a894accf..d7a529678f 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -87,6 +87,7 @@ PTESTS_FAST = "\
     python3-pyyaml \
     python3-rpds-py \
     python3-trove-classifiers \
+    python3-vcs-versioning \
     python3-uritools \
     python3-wcwidth \
     python3-webcolors \
diff --git a/meta/recipes-devtools/python/python3-vcs-versioning/run-ptest b/meta/recipes-devtools/python/python3-vcs-versioning/run-ptest
new file mode 100644
index 0000000000..6550ec8273
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-vcs-versioning/run-ptest
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# we need to load the vcs_versioning.test_api plugin for some tests to work.
+# Also make sure that we don't get pretty diffs for assertion errors so that we
+# don't see terminalreporter errors (which the automake plugin un-registers).
+pytest -p vcs_versioning.test_api --assert=plain --automake
diff --git a/meta/recipes-devtools/python/python3-vcs-versioning_1.1.1.bb b/meta/recipes-devtools/python/python3-vcs-versioning_1.1.1.bb
index 788717de9e..4d2f5007b4 100644
--- a/meta/recipes-devtools/python/python3-vcs-versioning_1.1.1.bb
+++ b/meta/recipes-devtools/python/python3-vcs-versioning_1.1.1.bb
@@ -7,9 +7,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c9b06ad2ebd7e2e82d34b3caf353e7d5"
 
 SRC_URI[sha256sum] = "fabd75a3cab7dd8ac02fe24a3a9ba936bf258667b5a62ed468c9a1da0f5775bc"
 
+SRC_URI += "\
+    file://run-ptest \
+"
+
 PYPI_PACKAGE = "vcs_versioning"
+PTEST_PYTEST_DIR = "testing_vcs"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 DEPENDS += "\
     python3-packaging-native \
@@ -21,4 +26,16 @@ RDEPENDS:${PN} = "\
     python3-typing-extensions \
 "
 
+RDEPENDS:${PN}-ptest += "\
+    git \
+    python3-setuptools \
+    python3-setuptools-scm \
+"
+
+do_install_ptest:append() {
+    rm -rf ${D}${PTEST_PATH}/.pytest_cache
+    find ${D}${PTEST_PATH} -name __pycache__ -type d -exec rm -rf {} +
+    find ${D}${PTEST_PATH} -name '*.pyc' -delete
+}
+
 BBCLASSEXTEND = "native nativesdk"
