func (s Suite) AddTest(t runtime.TestCase) {
	if _, err := s.GetTestByTitle(t.Title); err == nil {
		panic(fmt.Sprintf("Tests %s was already added to the suite", t.Title))
	}
	s.TestCases = append(s.TestCases, t)
}
AddTest pushes a new test to the suite
if the test was already added it will panic
package suite
import (
	"fmt"
	"regexp"
	"github.com/commander-cli/commander/v2/pkg/runtime"
)
type Suite struct {
	TestCases []runtime.TestCase
	Config    runtime.GlobalTestConfig
	Nodes     []runtime.Node
}
func NewSuite(suiteContent, overwriteConfigContent []byte, fileName string) Suite {
	overwriteConfig := ParseYAML(overwriteConfigContent, "default config")
	s := ParseYAML(suiteContent, fileName)
	s.mergeConfigs(overwriteConfig.Config, overwriteConfig.Nodes)
	return s
}
func (s Suite) GetNodes() []runtime.Node {
	return s.Nodes
}
func (s Suite) GetNodeByName(name string) (runtime.Node, error) {
	for _, n := range s.Nodes {
		if n.Name == name {
			return n, nil
		}
	}
	return runtime.Node{}, fmt.Errorf("could not find node with name %s", name)
}