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

forst-lang / forst / 24629274328
76%

Build:
DEFAULT BRANCH: main
Ran 19 Apr 2026 12:40PM UTC
Jobs 1
Files 221
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

19 Apr 2026 12:36PM UTC coverage: 76.163% (+0.4%) from 75.809%
24629274328

push

github

haveyaseen
test: improve coverage with runMain and dev HTTP stubs

Extract runMain(argv) int so the CLI is exercised in-process (subprocess tests
do not merge into go test -cover). Replace many os.Exit paths in runMain with
exit codes; restore os.Args around compiler.ParseArgs. StartDevServer and
lsp.StartLSPServer return listen/start errors instead of exiting the process.

DevServer holds a devFunctionExecutor interface (implemented by
*executor.FunctionExecutor) so tests can stub successful invoke, streaming
NDJSON, encode failures, /types discovery errors, and sendJSONResponse errors.
Add fmt/generate edge-case tests, run_main integration tests, and extended
TestMain helper cases.

Example (calling the CLI entry from tests):

```go
if code := runMain([]string{"forst", "build", echoPath}); code != 0 {
	t.Fatalf("exit %d", code)
}
```

40 of 52 new or added lines in 5 files covered. (76.92%)

20890 of 27428 relevant lines covered (76.16%)

88.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
82.87
32.63% forst/cmd/forst/main.go
1
99.2
-0.8% forst/cmd/forst/dev_server_runtime.go
1
91.67
-8.33% forst/cmd/forst/lsp/command.go
Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/180497095 24629274328.1 19 Apr 2026 12:40PM UTC 221
76.16
GitHub Action Run
Source Files on build 24629274328
  • Tree
  • List 221
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 895e8412 on github
  • Prev Build on main (#24629111175)
  • Next Build on main (#24629301635)
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