Skip to content

Commit

Permalink
feat: improve gnoland txtar with coverage
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Nov 7, 2024
1 parent 4bb2034 commit da85956
Show file tree
Hide file tree
Showing 7 changed files with 439 additions and 350 deletions.
19 changes: 17 additions & 2 deletions gno.land/cmd/gnoland/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,24 @@ package main
import (
"testing"

"github.com/gnolang/gno/gno.land/pkg/integration"
gnoland_integration "github.com/gnolang/gno/gno.land/pkg/integration"
gno_integration "github.com/gnolang/gno/gnovm/pkg/integration"
"github.com/stretchr/testify/require"
)

func TestTestdata(t *testing.T) {
integration.RunGnolandTestscripts(t, "testdata")
p := gno_integration.NewTestingParams(t, "testdata")

if coverdir, ok := gno_integration.ResolveCoverageDir(); ok {
err := gno_integration.SetupTestscriptsCoverage(&p, coverdir)
require.NoError(t, err)
}

// Set up gnoland for testscript
err := gnoland_integration.SetupGnolandTestscript(t, &p)
require.NoError(t, err)

// Run testscript
// XXX: We have to use seqshim for now as tests don't run well in parallel
gnoland_integration.RunSeqShimTestscripts(t, p)
}
Loading

0 comments on commit da85956

Please sign in to comment.