Skip to content

Commit 18bc1d3

Browse files
docs tweaks
1 parent a886106 commit 18bc1d3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

MIGRATION.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,19 @@ Coverage.jl now provides these functions directly:
106106

107107
## Environment Variables
108108

109+
The modern upload functions use these environment variables:
110+
109111
| Variable | Service | Description |
110112
|----------|---------|-------------|
111113
| `CODECOV_TOKEN` | Codecov | Repository token for Codecov |
112114
| `COVERALLS_REPO_TOKEN` | Coveralls | Repository token for Coveralls |
113-
| `CODECOV_FLAGS` | Codecov | Comma-separated flags |
114-
| `CODECOV_NAME` | Codecov | Upload name |
115+
116+
**Note**: Legacy environment variables `CODECOV_FLAGS` and `CODECOV_NAME` are only supported by the deprecated `Codecov.submit()` functions, not the modern `upload_to_codecov()` function. Use function parameters instead.
115117

116118
## Supported Formats
117119

118120
- **LCOV** (`.info`) - Recommended, supported by both services
119121
- **JSON** - Native format for each service
120-
- **XML** - Codecov only (via LCOV conversion)
121122

122123
## Platform Support
123124

src/Coverage.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ export prepare_for_codecov, prepare_for_coveralls
2727
export upload_to_codecov, upload_to_coveralls, process_and_upload
2828
export finish_coveralls_parallel
2929

30+
# Modern export utility functions
31+
export export_codecov_json, export_coveralls_json
32+
33+
# Utility functions
34+
export detect_platform
35+
3036
# Internal utilities module
3137
include("coverage_utils.jl")
32-
using .CoverageUtils
38+
using .CoverageUtils: detect_platform
3339

3440
const CovCount = CoverageTools.CovCount
3541
const FileCoverage = CoverageTools.FileCoverage

0 commit comments

Comments
 (0)