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

binbashar / leverage
65%
master: 65%

Build:
Build:
LAST BUILD BRANCH: kungfoo/path-fix
DEFAULT BRANCH: master
Repo Added 10 Feb 2024 10:08PM UTC
Files 44
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

LAST BUILD ON BRANCH fix/restore-unit-test-suite
branch: fix/restore-unit-test-suite
CHANGE BRANCH
x
Reset
  • fix/restore-unit-test-suite
  • 157-dependencies
  • 159-fix-apply-issue
  • 195-local-user
  • 229-fix-issue-with-version
  • 248-improve-coverage
  • 259-preflight-checks
  • 599-kubeconfig-helper
  • BB-276-symlinks
  • BL-294-friendly-parsing-errors
  • FEATURE/custom-user-in-toolbox
  • Fix/versions-bump
  • add-python-3.12-to-testing-workflows
  • apply-bug-159
  • bug-301-fix-parsing-error-in-locals.tf-file
  • bug/no-role-found-error
  • bzbyrm-codex/review-issue-#21-and-propose-solution
  • chore/add-support-for-python-3.13
  • chore/deprecate-python-3.8
  • chore/support-python-3.12
  • chore/update-hcl-parser-support-3.13
  • chore/upgrade-python-hcl-library
  • coderabbitai/docstrings/3086db4
  • codex/review-issue-#21-and-propose-solution
  • debugging
  • dummy
  • enchancement/update-release-drafter-version-msg.yml
  • feat/add-opentofu-command
  • feature/support-python-3.12
  • fix-sed-macos
  • fix/confusing-error-message
  • fix/integration-tests
  • improve-test-release
  • increase-account-dir-search-depth
  • increase-compatibiliy-with-podman
  • kungfoo/path-fix
  • lv-267
  • master
  • new-sso-url
  • prop/move-list-tasks-to-run
  • requests-2.31
  • temp/accept-looped-providers
  • test
  • v1.12.2
  • v1.12.3
  • v1.12.4
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v2.1.0
  • v2.1.1
  • version-warning

15 Sep 2026 08:43PM UTC coverage: 65.343% (+0.4%) from 64.93%
35021423738

push

github

web-flow
Fix | Restore the integration tests (#323)

* Fix | Restore the integration tests

Fix `leverage project create`:

  The root command builds the project paths for every invocation, which
  requires an already configured project. `project init` creates the git
  repository, so from that point on the configuration loads fine but still
  holds no project name, and `project create` aborts with "Project name has
  not been set" on what is its normal, intended use. The command that creates
  a project could not run on a project that did not exist yet.

  Before #316 the root command only loaded the config to check the toolbox
  version, and returned early when it was absent, with a comment noting that
  the config does not exist yet at some points of the project. That guard was
  lost when the paths were introduced. The project commands now skip the paths
  setup, which they never use. A unit test covers the regression.

Run the bats tests on the runner, and drop the testing image:

  The image existed to run the cli inside a container. Since #316 the cli runs
  the binaries on the host, and the image was never given terraform or tofu, so
  `leverage terraform version` had been failing on every run since December
  2025. What was left of the image was a Linux box with python, bats and
  leverage in it, which is what the runner already is, and which the unit test
  workflow already relies on.

  Dropping it also removes a dind base that no longer had a purpose, the
  `--privileged` flag and the dockerd entrypoint it needed, and a bind mount
  that had no effect since the image ran out of the copy made at build time.

  The no-git test used to `apk del git`, tying it to the image and to the file
  ordering of the suite. It now runs the cli with a PATH holding nothing but
  its own entry point, which `shutil.which` resolves the same way, without
  touching the system.

  Two portability fixes let the suite run on macOS as well: an explicit mktemp
  template, s... (continued)

514 of 1024 branches covered (50.2%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

2778 of 4014 relevant lines covered (69.21%)

0.69 hits per line

Relevant lines Covered
Build:
Build:
4014 RELEVANT LINES 2778 COVERED LINES
0.69 HITS PER LINE
Source Files on fix/restore-unit-test-suite
  • Tree
  • List 44
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
35021423738 fix/restore-unit-test-suite Fix | Restore the integration tests (#323) * Fix | Restore the integration tests Fix `leverage project create`: The root command builds the project paths for every invocation, which requires an already configured project. `project init` cre... push 15 Sep 2026 08:44PM UTC web-flow github
65.34
35021428180 fix/restore-unit-test-suite Merge 29f478644 into 70645daba Pull #322 15 Sep 2026 08:44PM UTC web-flow github
65.34
33333573252 fix/restore-unit-test-suite Fix | Make the test suite independent of installed binaries The init tests reached TFRunner.run through the real constructor, so they needed tofu installed to get past binary discovery. Without it the command exited before run() was ever called a... Pull #322 30 Aug 2026 08:25PM UTC diego-ojeda-binbash github
64.93
See All Builds (290)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc