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

eclipse-bluechi / bluechi / 12388350688
83%

Build:
DEFAULT BRANCH: main
Ran 18 Dec 2024 07:43AM UTC
Jobs 1
Files 57
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Dec 2024 07:30AM UTC coverage: 80.974%. Remained the same
12388350688

push

github

engelmi
Introduce test-specific environment variables

This commit adds two new functions to the integration tests utilities:

get_test_env_value(varname: str, default_value: str) -> str
get_test_env_value_int(varname: str, default_value: int) -> int

This allows to set and get test-specific environment variables easily.

Use case:
Say we have an integration test, in which we want to assign a value
for a variable WAIT_TIMEOUT externally from the environment, but we
don't want to create a new fixture for it, as this value would be used
only in this specific test. The expected environment variable name
would be assembled from the prefix `TEST_`, test name (i.e. the
directory name in which the test script is located) and the provided
suffix, e.g. in test named `bluechi-generic-test`, the expected
environment variable would be `TEST_BLUECHI_GENERIC_TEST_WAIT_TIMEOUT`

Thus, using
`WAIT_TIMEOUT = get_test_env_value_int("WAIT_TIMEOUT", 1000)`
in the test named `bluechi-generic-test` will set WAIT_TIMEOUT the
value of 1000, unless `TEST_BLUECHI_GENERIC_TEST_WAIT_TIMEOUT`
environment variable is set with an integer value, which in that case
would be assigned to `WAIT_TIMEOUT`

Signed-off-by: Mark Kemel <mkemel@redhat.com>

5388 of 6654 relevant lines covered (80.97%)

1100.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12388350688.1 18 Dec 2024 07:42AM UTC 0
80.97
GitHub Action Run
Source Files on build 12388350688
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12388350688
  • 759f3a44 on github
  • Prev Build on main (#12330509510)
  • Next Build on main (#12409110839)
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

© 2026 Coveralls, Inc