Skip to content

Commit

Permalink
Consolidate tests (#116)
Browse files Browse the repository at this point in the history
Consolidates tests into a single integration suite
  • Loading branch information
kalverra authored Oct 21, 2021
1 parent 8270c6c commit 124cb42
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 72 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refill
package integration

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts_test
package integration_test

import (
"os"
Expand All @@ -14,14 +14,14 @@ import (
"github.com/rs/zerolog/log"
)

func TestContracts(t *testing.T) {
func TestIntegration(t *testing.T) {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
RegisterFailHandler(Fail)
conf, err := config.NewConfig(tools.ProjectRoot)
if err != nil {
Fail("failed to load config")
}
log.Logger = log.Logger.Level(zerolog.Level(conf.Logging.Level))
junitReporter := reporters.NewJUnitReporter("../../logs/tests-contracts.xml")
RunSpecsWithDefaultAndCustomReporters(t, "Contract Suite", []Reporter{junitReporter})
junitReporter := reporters.NewJUnitReporter("../../logs/tests-integration.xml")
RunSpecsWithDefaultAndCustomReporters(t, "Integration suite", []Reporter{junitReporter})
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package multi_network
package integration

import (
"context"
Expand Down
27 changes: 0 additions & 27 deletions suite/multi-network/multi_network_suite_test.go

This file was deleted.

7 changes: 4 additions & 3 deletions suite/performance/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package performance

import (
"fmt"
"sync"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/smartcontractkit/integrations-framework/actions"
"golang.org/x/sync/errgroup"
"sync"
"github.com/smartcontractkit/integrations-framework/client"
"time"
"golang.org/x/sync/errgroup"

"github.com/montanaflynn/stats"
"github.com/onsi/ginkgo"
Expand Down
File renamed without changes.
27 changes: 0 additions & 27 deletions suite/refill/eth_refill_suite_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion tools/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ performance=$1

if [[ $performance == 0 ]]; then
echo "Running smoke tests"
ginkgo -r -keepGoing --trace --randomizeAllSpecs --randomizeSuites --progress -nodes=10 -skipPackage=./suite/performance,./suite/chaos ./suite/...
ginkgo -r -keepGoing --trace --randomizeAllSpecs --randomizeSuites --progress -nodes=15 -skipPackage=./suite/performance,./suite/chaos ./suite/...
else
echo "Running performance and chaos tests"
ginkgo -r -keepGoing --trace --randomizeAllSpecs --randomizeSuites --progress ./suite/performance ./suite/chaos
Expand Down

0 comments on commit 124cb42

Please sign in to comment.