• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 19015773527

02 Nov 2025 05:33PM UTC coverage: 17.872% (-62.4%) from 80.3%
19015773527

Pull #22816

github

web-flow
Merge a12d75757 into 6c024e162
Pull Request #22816: Update Pants internal Python to 3.14

4 of 5 new or added lines in 3 files covered. (80.0%)

28452 existing lines in 683 files now uncovered.

9831 of 55007 relevant lines covered (17.87%)

0.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/shell/subsystems/shunit2.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
UNCOV
3
from pants.core.goals.resolves import ExportableTool
×
UNCOV
4
from pants.core.util_rules import external_tool
×
UNCOV
5
from pants.core.util_rules.external_tool import TemplatedExternalTool
×
UNCOV
6
from pants.engine.rules import collect_rules
×
UNCOV
7
from pants.engine.unions import UnionRule
×
UNCOV
8
from pants.option.option_types import SkipOption
×
UNCOV
9
from pants.util.meta import classproperty
×
10

11

UNCOV
12
class Shunit2(TemplatedExternalTool):
×
UNCOV
13
    options_scope = "shunit2"
×
UNCOV
14
    name = "shunit2"
×
UNCOV
15
    help = "shUnit2 is a xUnit framework for Bourne based shell scripts (https://github.com/kward/shunit2)"
×
16

17
    # shUnit2 almost never cuts "official" releases, so we point directly at git SHAs.
UNCOV
18
    default_version = "b9102bb763cc603b3115ed30a5648bf950548097"
×
UNCOV
19
    default_url_template = "https://raw.githubusercontent.com/kward/shunit2/{version}/shunit2"
×
20

UNCOV
21
    skip = SkipOption("test")
×
22

UNCOV
23
    @classproperty
×
UNCOV
24
    def default_known_versions(cls):
×
UNCOV
25
        return [
×
26
            "|".join(
27
                (
28
                    cls.default_version,
29
                    plat,
30
                    "1f11477b7948150d1ca50cdd41d89be4ed2acd137e26d2e0fe23966d0e272cc5",
31
                    "40987",
32
                )
33
            )
34
            for plat in ["macos_arm64", "macos_x86_64", "linux_x86_64", "linux_arm64"]
35
        ]
36

37

UNCOV
38
def rules():
×
UNCOV
39
    return [
×
40
        *collect_rules(),
41
        *external_tool.rules(),
42
        UnionRule(ExportableTool, Shunit2),
43
    ]
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc