databricks-cli/cmd/bundle/test.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
650 B
Go
Raw Normal View History

package bundle
import (
"errors"
"github.com/spf13/cobra"
)
2025-03-09 20:17:56 +00:00
func newTestCommand(hidden bool) *cobra.Command {
cmd := &cobra.Command{
Use: "test",
2025-03-09 20:17:56 +00:00
Short: "Run tests for this project",
Long: `Run tests for this project.`,
// We're not ready to expose this command until we specify its semantics.
2025-03-09 20:17:56 +00:00
Hidden: hidden,
}
cmd.RunE = func(cmd *cobra.Command, args []string) error {
return errors.New("TODO")
// results := project.RunPythonOnDev(cmd.Context(), `return 1`)
// if results.Failed() {
// return results.Err()
// }
// fmt.Fprintf(cmd.OutOrStdout(), "Success: %s", results.Text())
// return nil
}
return cmd
}