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

facebookincubator / TTPForge / 14206650345
64%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D89671295
DEFAULT BRANCH: main
Ran 01 Apr 2025 09:44PM UTC
Jobs 1
Files 59
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

01 Apr 2025 09:42PM UTC coverage: 64.353%. First build
14206650345

Pull #535

github

facebook-github-bot
TTPForge: Add variable passing between steps (#535)

Summary:
Pull Request resolved: https://github.com/facebookincubator/TTPForge/pull/535

Create the ability to dynamically set variables based on step outputs and then use them in subsequent steps.  This is achieved via two large changes:
- All steps take an `outputvar` value, and each step manually defines how it sets this value.  Steps where it doesn't make sense to have an output variable just do nothing with this value.
  - Inline step pipes any stdout output to a variable
  - HTTPRequest step pipes response body (or regex result of response body if set) to a variable
  - FetchURI step pipes the entire content output to a variable
  - All other steps do not currently define an output
- All steps now do a second templating step at step load time using these tags `{[{ ... }]}`. All steps now have a Template method, which each step needs to define to manually specify which variables will be templated.  We do this because TTPForge by default only templates once before loading the YAML.

Differential Revision: D71841703
Pull Request #535: TTPForge: Add step level templating

216 of 343 new or added lines in 19 files covered. (62.97%)

2123 of 3299 relevant lines covered (64.35%)

16.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
87.91
pkg/blocks/context.go
2
71.62
pkg/blocks/copypath.go
2
76.81
pkg/blocks/createfile.go
2
84.21
pkg/blocks/printstr.go
2
49.24
pkg/blocks/ttps.go
3
68.97
pkg/blocks/editstep.go
4
74.48
pkg/blocks/step.go
4
77.17
pkg/blocks/subttp.go
4
0.0
pkg/blocks/subttpcleanup.go
6
0.0
pkg/blocks/compositeaction.go
20
76.38
pkg/blocks/httprequest.go
23
12.16
pkg/blocks/filestep.go
24
51.08
pkg/blocks/expectstep.go
29
56.1
pkg/blocks/fetchuri.go
Jobs
ID Job ID Ran Files Coverage
1 14206650345.1 01 Apr 2025 09:44PM UTC 59
64.35
GitHub Action Run
Source Files on build 14206650345
  • Tree
  • List 59
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #535
  • Delete
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