Skip to content

Add support for the --test option for package #3512

Closed
@Gedochao

Description

@Gedochao

Is your feature request related to a problem? Please describe.
To be consistent with other build methods, it should be possible to package the test scope along with main when using the package command.

Describe the solution you'd like
A --test command line option, similar to repl and compile.

Describe alternatives you've considered
Currently it's possible to compile the test scope separately and then add the output to the classpath for package.
It's a hassle though, and requires 2 separate scala-cli calls.

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions