diff options
author | EuAndreh <eu@euandre.org> | 2024-12-12 11:04:07 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-12 11:04:07 -0300 |
commit | 597687f4aea38ef19d12e0fdaf021fa4faba8f02 (patch) | |
tree | e65ffaa7c9fc4f39826c36825e73eb81765add16 /tests/unit/spec/test/test.go | |
parent | Build and run existing test executables with no actual tests (diff) | |
download | cotia-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.gz cotia-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.xz |
tests/unit/: Actually run existing tests
Diffstat (limited to 'tests/unit/spec/test/test.go')
-rw-r--r-- | tests/unit/spec/test/test.go | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/unit/spec/test/test.go b/tests/unit/spec/test/test.go index c6ec8f1..0a77689 100644 --- a/tests/unit/spec/test/test.go +++ b/tests/unit/spec/test/test.go @@ -2,11 +2,15 @@ package test import ( "fmt" + "os" "reflect" "strings" "testing" + "testing/internal/testdeps" ) + + func TestTree_Format(t *testing.T) { expected := `(a (b @@ -411,4 +415,18 @@ func testTestCase(t *testing.T, expected, actual *TestCase) { } -func MainTest() {} + +func MainTest() { + tests := []testing.InternalTest{ + { "TestTree_Format", TestTree_Format }, + { "TestDiffTree", TestDiffTree }, + { "TestParseTestCase", TestParseTestCase }, + } + + deps := testdeps.TestDeps{} + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |