From nobody Thu Apr 21 12:06:39 2022 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 17B90198E048 for ; Thu, 21 Apr 2022 12:06:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kkbqh07yZz3qSv; Thu, 21 Apr 2022 12:06:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650542800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HnQ3dq/aq5/X8pQGxTy5mdY+A+QjJAOs975PUM9t/Uw=; b=Hru0f8Q8wsCWZouW04hTp6Sblh3DJjz707MMQxPb02SSLa7mmvPyqdWnL75FSsdZ9WBwox 5I7Quo4VXhLKoeGQ7P476z8CYYeCI6sPihicrkX1By1xOgf/nX0JPS1EQTOlR9Qyy52dz0 8as1Qmnz955E21xTuqirV/8SU6v0AfWLlGl9uVLNV5THTi9WDdbW0lTbYn8Jk+ECSIMtIu X21JZbHLRLdSZ7gf1MuOIRuA9TYyAIoIOz0M0BPyJCUc8dHgTSK2W0019pYn04cLj3nZqg D2GA5UDXFDSf2Lq47pUM2vatjIxim2m2aJe2+ca5bGec8911lh97woTHQkeAow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D942D27E76; Thu, 21 Apr 2022 12:06:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LC6dwB067019; Thu, 21 Apr 2022 12:06:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LC6dCP067018; Thu, 21 Apr 2022 12:06:39 GMT (envelope-from git) Date: Thu, 21 Apr 2022 12:06:39 GMT Message-Id: <202204211206.23LC6dCP067018@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: =?utf-8?Q?Fernando Apestegu=C3=ADa?= Subject: git: 1f5415db25 - main - [phb]: Document USES=pytest List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1f5415db2575959d70e41f9385233322b27c507d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650542800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HnQ3dq/aq5/X8pQGxTy5mdY+A+QjJAOs975PUM9t/Uw=; b=TKx2ZE6Tf7nGZ7LU/u1uu4p/zfstGuzAbkVmDZWPvjAPQLo5+6e/Whkf/NCmFcAqJ5HCx8 v0TqY8kKCNE5oOgFeLU+BK0NlSNORe0eZ9He9IilL3iynQGYgwsRG9Jwx9JN900oeTGvft DABBFJ6mUDdHzf8h8ExBMZbDgohjxVmMErR76kaJq71+8spc/e+cL2/vIzxRaVotY/DtMF zEfgnPsvgqk/jLKSiNxF+6nHFZ8aadrP7rAuyWWSbqJEJnLb/IBQy+FfKGQ/e0c9XT1FnS Ke3GAW4ES49FEDNzvqea81+dXBz4lBEGp1dqUMpUztivmosIHFS32hgQpBMNQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650542800; a=rsa-sha256; cv=none; b=WoohUMFtKOsILz/xDFuVvwr96k57D8eg9SqyUCuoZDLdqJxzPhs5dg9bzu8MKWJ0CwqSDK LHUFnV0g8vukdqWPYnw7TCvTqMg0h7++Ly6tUu/TEiaE46/oZTi2u7pHu91YU1ZQzQknQS eXPmkbKqSck4vpUrhTgExTBFyMGDhuChPrgWTFBk10syurFw/LF8DnRKNoFeVlPvpLfzEI wO937+vjVtFPZ1CumKKpYiUnK0rPKpDSzF7dGIFLLZfDoB1zVERuvjHLXA7SDIvO7l9AQG bM6J4iYqoou4q/N+JzV+BOlhRZEnTNFtr4xACW8zLd6OBayQeG8fKobvHCkgGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/doc/commit/?id=1f5415db2575959d70e41f9385233322b27c507d commit 1f5415db2575959d70e41f9385233322b27c507d Author: Fernando ApesteguĂ­a AuthorDate: 2022-04-21 11:48:56 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2022-04-21 12:03:54 +0000 [phb]: Document USES=pytest Stadarized way of running pytest. Follow-up for https://cgit.FreeBSD.org/ports/commit/?id=b731fff69c0ffd79f80f5d1d575e016337f3b920 --- .../en/books/porters-handbook/uses/_index.adoc | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc index c5c967ac48..522c2f8155 100644 --- a/documentation/content/en/books/porters-handbook/uses/_index.adoc +++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc @@ -1367,6 +1367,40 @@ USES= pyqt USE_PYQT= core doc_build designer_run .... +[[uses-pytest]] +== `pytest` + +Possible arguments: (none), 4 + +Introduces a new dependency on package:devel/pytest[]. It defines a `do-test` +target which will run the tests properly. If your port uses package:devel/pytest[] +consider using this before rolling your own `do-test` target. The framework +exposes the following variables to the port: + +`PYTEST_ARGS`:: +Additional arguments to pytest (defaults to empty). + +`PYTEST_IGNORED_TESTS`:: +lists of `pytest -k` patterns of tests to ignore (defaults to empty). For tests +which are not expected to pass, such as ones requiring a database access. + +`PYTEST_BROKEN_TESTS`:: +lists of `pytest -k` patterns of tests to ignore (defaults to empty). For broken +tests which require fixing. + +In addition the following variables may be set by the user: + +`PYTEST_ENABLE_IGNORED_TESTS`:: +Enable tests which are otherwise ignored by `PYTEST_IGNORED_TESTS`. + +`PYTEST_ENABLE_BROKEN_TESTS`:: +Enable tests which are otherwise ignored by `PYTEST_BROKEN_TESTS`. + +`PYTEST_ENABLE_ALL_TESTS`:: +Enable tests which are otherwise ignored by `PYTEST_IGNORED_TESTS` and +`PYTEST_BROKEN_TESTS`. + + [[uses-python]] == `python`