Skip to content

Create a mock console to increase test coverage on mac #1461

@TerryHowe

Description

@TerryHowe

What is the version of your ORAS CLI

1.2.0

What would you like to be added?

Increase test coverage on mac with mock console

Why is this needed for ORAS?

These tests do not run on mac because of X-code issue:

 % grep -r solaris cmd internal 
cmd/oras/internal/option/common_unix_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/internal/display/status/track/target_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/internal/display/status/progress/manager_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/internal/display/status/progress/status_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/internal/display/status/tty_console_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/internal/display/status/console/console_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/internal/display/status/console/testutils/testutils.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/root/cp_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/root/blob/push_test.go://go:build freebsd || linux || netbsd || openbsd || solaris
cmd/oras/root/blob/fetch_test.go://go:build freebsd || linux || netbsd || openbsd || solaris

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions