Skip to content
Snippets Groups Projects
Select Git revision
  • 9729559c484a0da330e60ef6769176d1e524d84e
  • master default protected
  • v0.2.1
  • v0.2.0
4 results

README.md

Blame
  • main_test.go 764 B
    // Package tests provides the possibility to write integration tests in regular Go style.
    // The integration test framework is initialized before any test in the package runs and
    // thus can readily be used to make requests to peers and read their logs.
    //
    // Each tested feature should reside in its own test file and define tests cases as necessary.
    package tests
    
    import (
    	"os"
    	"testing"
    
    	"github.com/iotaledger/goshimmer/tools/integration-tests/tester/framework"
    )
    
    var f *framework.Framework
    
    // TestMain gets called by the test utility and is executed before any other test in this package.
    // It is therefore used to initialize the integration testing framework.
    func TestMain(m *testing.M) {
    	f = framework.New()
    
    	// call the tests
    	os.Exit(m.Run())
    }