Files
xiongyuanwen-byted ea088f4283 fix(sheets): suppress multipart stderr noise and tighten e2e boundary test (#2550)
Add a Quiet flag to DriveMediaMultipartUploadConfig so callers whose
success contract forbids non-empty stderr (the sheets shortcuts) can
suppress the chunk-plan and per-block progress lines the multipart
path writes unconditionally on success. Both uploadSheetImage and the
deprecated uploadSheetMediaFile pass Quiet: true.

Also simplify isLocallyOpenedOfficeToken to two HasPrefix calls
instead of a loop over an inline slice, so the two-prefix invariant
stays in one expression rather than drifting from common.

Finally, fix the e2e "at the ceiling stays single-part" test case:
the small.png fixture was 9 bytes, not the 20 MB the name implied.
Truncate it to singlePartCeiling so the boundary is actually pinned.
2026-08-31 10:57:31 +08:00
..
2026-08-11 15:43:58 +08:00
2026-07-24 14:28:54 +08:00

CLI E2E Tests

This directory contains end-to-end tests for lark-cli.

The purpose of this module is to verify real CLI workflows from a user-facing perspective: run the compiled binary, execute commands end to end, and catch regressions that are not obvious from unit tests alone.

What Is Here

  • core.go, core_test.go: the shared E2E test harness and its own tests
  • demo/: reference testcase(s)
  • cli-e2e-testcase-writer/: the local skill for adding or updating testcase files in this module

For Contributors

When writing or updating testcases under tests/cli_e2e, install and use this skill first:

npx skills add ./tests/cli_e2e/cli-e2e-testcase-writer

Then follow tests/cli_e2e/cli-e2e-testcase-writer/SKILL.md.

Example prompt:

Use $cli-e2e-testcase-writer to write lark-cli xxx domain related testcases.
Put them under tests/cli_e2e/xxx.

Run

make build
go test ./tests/cli_e2e/... -count=1