From 37c66e81baff0f303d6112ce8882939d1edf151b Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 4 Oct 2018 10:41:43 +0200 Subject: [PATCH] Runs tests in order by name --- tests/integration.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/integration.go b/tests/integration.go index 225a5736..e0483472 100644 --- a/tests/integration.go +++ b/tests/integration.go @@ -16,6 +16,7 @@ import ( "os" "path/filepath" "reflect" + "sort" "testing" "github.com/jakm/btcutil/chaincfg" @@ -36,7 +37,14 @@ func runIntegrationTests(t *testing.T) { t.Fatal(err) } - for coin, cfg := range tests { + keys := make([]string, 0, len(tests)) + for k := range tests { + keys = append(keys, k) + } + sort.Strings(keys) + + for _, coin := range keys { + cfg := tests[coin] t.Run(coin, func(t *testing.T) { runTests(t, coin, cfg) }) }