pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add universal-test-runner.



Module Name:	pkgsrc-wip
Committed By:	Amitai Schleier <schmonz-web-git%schmonz.com@localhost>
Pushed By:	schmonz
Date:		Mon Jan 8 10:58:50 2024 -0500
Changeset:	6ab4551dbb605d7d8114c947b4d8a2e03ca81dea

Added Files:
	universal-test-runner/DESCR
	universal-test-runner/Makefile
	universal-test-runner/PLIST
	universal-test-runner/TODO
	universal-test-runner/distinfo

Log Message:
Add universal-test-runner.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6ab4551dbb605d7d8114c947b4d8a2e03ca81dea

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 universal-test-runner/DESCR    |  9 +++++++++
 universal-test-runner/Makefile | 19 +++++++++++++++++++
 universal-test-runner/PLIST    | 23 +++++++++++++++++++++++
 universal-test-runner/TODO     |  5 +++++
 universal-test-runner/distinfo |  5 +++++
 5 files changed, 61 insertions(+)

diffs:
diff --git a/universal-test-runner/DESCR b/universal-test-runner/DESCR
new file mode 100644
index 0000000000..060e663f88
--- /dev/null
+++ b/universal-test-runner/DESCR
@@ -0,0 +1,9 @@
+The Universal Test Runner is a zero-configuration, language-aware way to
+run unit tests in any project. It installs a command, `t`, which will
+determine how to run your test suite (and then run it).
+
+If you're working on a JS project, it runs `[your package manager here]
+test`. You've run `pytest` in this folder before? `pytest` it is. Rust
+project? `cargo test` coming right up. Is also clever about running all
+your `go` module tests (regardless of how they're organized). No matter
+the command, all args are passed directly into the test runner.
diff --git a/universal-test-runner/Makefile b/universal-test-runner/Makefile
new file mode 100644
index 0000000000..2be4d3fcee
--- /dev/null
+++ b/universal-test-runner/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=	universal-test-runner-0.5.1
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_GITHUB:=xavdid/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/xavdid/universal-test-runner/
+COMMENT=	Language-agnostic, zero-configuration test invoker
+LICENSE=	mit
+
+DEPENDS+=	${PYPKGPREFIX}-click>=8.1.3:../../devel/py-click
+DEPENDS+=	${PYPKGPREFIX}-colorama>=0.4.6:../../comms/py-colorama
+
+USE_LANGUAGES=	# none
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/universal-test-runner/PLIST b/universal-test-runner/PLIST
new file mode 100644
index 0000000000..49a14285a2
--- /dev/null
+++ b/universal-test-runner/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD$
+bin/t
+bin/universal-test-runner
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/universal_test_runner/__init__.py
+${PYSITELIB}/universal_test_runner/__init__.pyc
+${PYSITELIB}/universal_test_runner/__init__.pyo
+${PYSITELIB}/universal_test_runner/cli.py
+${PYSITELIB}/universal_test_runner/cli.pyc
+${PYSITELIB}/universal_test_runner/cli.pyo
+${PYSITELIB}/universal_test_runner/context.py
+${PYSITELIB}/universal_test_runner/context.pyc
+${PYSITELIB}/universal_test_runner/context.pyo
+${PYSITELIB}/universal_test_runner/matchers.py
+${PYSITELIB}/universal_test_runner/matchers.pyc
+${PYSITELIB}/universal_test_runner/matchers.pyo
+${PYSITELIB}/universal_test_runner/runner.py
+${PYSITELIB}/universal_test_runner/runner.pyc
+${PYSITELIB}/universal_test_runner/runner.pyo
diff --git a/universal-test-runner/TODO b/universal-test-runner/TODO
new file mode 100644
index 0000000000..caa9f6caa6
--- /dev/null
+++ b/universal-test-runner/TODO
@@ -0,0 +1,5 @@
+- is PyPi a better source for the distfile?
+- are dependencies (build, tool, runtime) complete and accurate?
+- which packages does `bin/t` conflict with?
+- prefix package name with `py-`?
+- either prevent self-conflict with multiple versions of python, or mark as such
diff --git a/universal-test-runner/distinfo b/universal-test-runner/distinfo
new file mode 100644
index 0000000000..077244b8c4
--- /dev/null
+++ b/universal-test-runner/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (universal-test-runner-0.5.1.tar.gz) = ad79706be4da79e3832829cf57ebe9dee536a3b4cdd7f833db00f6847ee79732
+SHA512 (universal-test-runner-0.5.1.tar.gz) = b5ef7bd9a766fcef4030bf134d190b1a17268c10683c5f534d902fb5ba1050f65ee70f0772fe0dbf69fd7084ddf0d5d9b26018940bce96fd5a526df16cfaa48f
+Size (universal-test-runner-0.5.1.tar.gz) = 15493 bytes


Home | Main Index | Thread Index | Old Index