You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Hackathon] Read ~/.testsprite/config for persistent defaults (output, endpoint, project) #100
There is no way to persist a default --output, --endpoint-url, or project id; every non-credential setting is flag-or-env only. The path is already half-built: defaultConfigPath() returns ~/.testsprite/config and has a unit test, but loadConfig() never reads it. Wire the config file in as the lowest-precedence layer (flag > env > config-file > built-in default), so "this repo speaks JSON to this endpoint" can be stated once. This mirrors the aws-cli split (credentials in one file, settings in another) that this repo has half-built.
Details / implementation notes
defaultConfigPath() at src/lib/config.ts:20 is defined, but loadConfig() (config.ts:35-46) resolves only flag > env > credentials file. Reuse the existing hardened INI parser parseCredentials() (src/lib/credentials.ts; null-prototype + prototype-pollution guards) to read a [default]/[profile x] section, and insert one layer into loadConfig's cascade below env. Composes with the existing TESTSPRITE_PROJECT_ID. Document the precedence and extend the DOCUMENTATION.md configuration tables. No new dependency. Tests: config-file value used when flag/env absent; flag and env override it. PR to follow once assigned.
Confirmations
I have searched existing issues and this is not a duplicate.
I have provided my Discord identity above for reward coordination.
Triage: accepted — confirmed against current source: defaultConfigPath() exists but loadConfig() never reads it, so this finishes an intended aws-cli-style credentials/config split. Precedence exactly as proposed: flag > env > config file > built-in default. Comment /assign to claim.
@OkeyAmy, your claim expired after 48 hours without a linked PR. This issue is open for others now, and you're welcome to /assign again if it's still free.
We have decided not to add a ~/.testsprite/config layer to the CLI: the endpoint, output format and project keep coming from flags, environment variables and the credentials profile. Closing as not planned (see #225 and #540). Thanks to both authors for the work.
Activity
zeshi-du commentedon Jul 3, 2026
Triage: accepted — confirmed against current source:
defaultConfigPath()exists butloadConfig()never reads it, so this finishes an intended aws-cli-style credentials/config split. Precedence exactly as proposed: flag > env > config file > built-in default. Comment/assignto claim.Andy00L commentedon Jul 5, 2026
PR ready here: #179
Andy00L commentedon Jul 5, 2026
/assign
testsprite-hob commentedon Jul 5, 2026
Assigned to @Andy00L. Thanks for taking this on.⚠️ You're now over the soft 3-issue limit (6/3). Consider finishing one before taking more.
Your open assigned issues (6/3):
Andy00L commentedon Oct 15, 2026
/unassign
testsprite-hob commentedon Oct 15, 2026
Unassigned @Andy00L. Thanks for the update — freeing this up for someone else.
OkeyAmy commentedon Oct 18, 2026
/assign
testsprite-hob commentedon Oct 18, 2026
Assigned to @OkeyAmy. Thanks for taking this on. (1 more slot available.)
Your open assigned issues (2/3):
fix(cli): keep the error-path config lookup from masking exit codes (T…
testsprite-hob commentedon Nov 9, 2026
@OkeyAmy, your claim expired after 48 hours without a linked PR. This issue is open for others now, and you're welcome to
/assignagain if it's still free.zeshi-du commentedon Nov 9, 2026
We have decided not to add a
~/.testsprite/configlayer to the CLI: the endpoint, output format and project keep coming from flags, environment variables and the credentials profile. Closing as not planned (see #225 and #540). Thanks to both authors for the work.