Merged in feature/testingopts (pull request #129)

Testing Options and Clean Up

* bitsandbobs

* lint

* healthchecks

* imgintests

* singlegenerate

* testclean

* network

* networkclean

* cmds
This commit is contained in:
Michael McGuinness
2025-05-03 01:16:53 +00:00
parent 15fa3b49a5
commit dd2eebf13a
73 changed files with 4657 additions and 234 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import (
func TestClean(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
+1 -1
View File
@@ -15,7 +15,7 @@ import (
func TestClient(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -17,7 +17,7 @@ import (
func TestCollector(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -15,7 +15,7 @@ import (
func TestDocument(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
+4 -4
View File
@@ -16,7 +16,7 @@ import (
func TestQueries(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -226,7 +226,7 @@ func TestQueries(t *testing.T) {
func TestQueryDependencyTree(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -445,7 +445,7 @@ func TestQueryDependencyTree(t *testing.T) {
func TestQueriesList(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -501,7 +501,7 @@ func TestQueriesList(t *testing.T) {
func TestListQueryClients(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
+3 -3
View File
@@ -18,7 +18,7 @@ import (
func TestResults(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -157,7 +157,7 @@ func TestResults(t *testing.T) {
func TestResultValues(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -371,7 +371,7 @@ func TestResultValues(t *testing.T) {
func TestUnsyncedNoDepsQueries(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
+2 -2
View File
@@ -18,7 +18,7 @@ import (
func TestListClientDocumentIDs(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -168,7 +168,7 @@ func createClientWithCollector(t testing.TB, ctx context.Context, queries *repos
func TestClientSync(t *testing.T) {
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
t.Run("document fail clean", func(t *testing.T) {
+3 -3
View File
@@ -18,7 +18,7 @@ import (
func TestTextExtraction(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -126,7 +126,7 @@ func TestTextExtraction(t *testing.T) {
func TestTextTextractPart(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()
@@ -256,7 +256,7 @@ func TestTextTextractPart(t *testing.T) {
func TestTextOutPart(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip("Skipping long test in short mode")
t.SkipNow()
}
ctx := context.Background()