github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/cmd/gno/testdata/gno_test/failing_test.txtar (about)

     1  # Test with a failing _test.gno file
     2  
     3  ! gno test -v .
     4  
     5  ! stdout .+
     6  stderr '=== RUN   TestAlwaysFailing'
     7  stderr '--- FAIL: TestAlwaysFailing'
     8  stderr 'FAIL: 0 build errors, 1 test errors'
     9  
    10  ! gno test -v --transpile .
    11  
    12  ! stdout .+
    13  stderr '=== RUN   TestAlwaysFailing'
    14  stderr '--- FAIL: TestAlwaysFailing'
    15  stderr 'FAIL: 0 build errors, 1 test errors'
    16  
    17  -- failing.gno --
    18  package failing
    19  
    20  -- failing_test.gno --
    21  package failing
    22  
    23  import "testing"
    24  
    25  func TestAlwaysFailing(t *testing.T) {
    26  	t.Fatal("failed")
    27  }