Skip to content

Commit

Permalink
get output of bats command
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis committed Aug 10, 2024
1 parent 3064db3 commit 621c7fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/chart_platform_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (suite *PlatformChartIntegrationSuite) TestBasicDeployment() {
batsTestFile, err := filepath.Abs("bats/tutorial.bats")
suite.Require().NoError(err)

err = exec.Command("bats", batsTestFile).Run()
suite.Require().NoError(err)
cmd := exec.Command("bats", batsTestFile)
output, err := cmd.CombinedOutput()
suite.Require().NoError(err, string(output))
}

0 comments on commit 621c7fc

Please sign in to comment.