Skip to content

Commit

Permalink
Updating specifications in integration test suite (#45)
Browse files Browse the repository at this point in the history
* remove: GRPC specification from integration tests
* fix: update RateLimit specification in integration tests
* fix: update SpanTree specification in integration tests
  • Loading branch information
riz0id authored Feb 10, 2022
1 parent 21337e4 commit 76f9838
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 427 deletions.
12 changes: 8 additions & 4 deletions spectacle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ copyright: 2021 Arista Networks
build-type: Simple
tested-with:
GHC == 8.10.3
GHC == 8.10.4

extra-source-files:
README.md
Expand Down Expand Up @@ -48,10 +49,10 @@ common common
default-extensions:
BangPatterns BlockArguments ConstraintKinds DataKinds DefaultSignatures
DeriveFunctor DeriveGeneric DerivingVia FlexibleContexts FlexibleInstances
GADTs LambdaCase MagicHash MultiParamTypeClasses PatternSynonyms PolyKinds
RankNTypes RoleAnnotations ScopedTypeVariables StandaloneDeriving
StandaloneKindSignatures TypeApplications TypeOperators UnicodeSyntax
ViewPatterns
GADTs ImportQualifiedPost LambdaCase MagicHash MultiParamTypeClasses
PatternSynonyms PolyKinds RankNTypes RoleAnnotations ScopedTypeVariables
StandaloneDeriving StandaloneKindSignatures TypeApplications TypeOperators
UnicodeSyntax ViewPatterns

library
import: common
Expand Down Expand Up @@ -178,11 +179,14 @@ test-suite integration-tests
other-modules:
Specifications.BitClock
Specifications.Diehard
Specifications.RateLimit
Specifications.SimpleClock
Specifications.SpanningTree
Specifications.Status

build-depends:
spectacle
, containers
, hashable
, hedgehog
, tasty
Expand Down
6 changes: 5 additions & 1 deletion test/integration/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import Language.Spectacle.Specification (Specification)

import qualified Specifications.BitClock as BitClock
import qualified Specifications.Diehard as Diehard
import qualified Specifications.RateLimit as RateLimit
import qualified Specifications.SimpleClock as SimpleClock
import qualified Specifications.SpanningTree as SpanningTree
import qualified Specifications.Status as Status

-- ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -20,10 +22,12 @@ main :: IO ()
main =
defaultMain $
testGroup
"integration tests"
"Integration"
[ testProperty "Specifications.BitClock" (testCheckVerify BitClock.bitClockSpec)
, testProperty "Specifications.Diehard" (testCheckRefute Diehard.diehardSpec)
, testProperty "Specifications.RateLimit" (testCheckVerify RateLimit.rateLimitSpec)
, testProperty "Specifications.SimpleClock" (testCheckVerify SimpleClock.clockSpec)
, testProperty "Specifications.SpanningTree" (testCheckVerify SpanningTree.spanTreeSpec)
, testProperty "Specifications.Status" (testCheckVerify Status.statusSpec)
]

Expand Down
220 changes: 0 additions & 220 deletions test/integration/Specifications/GRPC.hs

This file was deleted.

Loading

0 comments on commit 76f9838

Please sign in to comment.