Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jun 28, 2021
1 parent 67e3d6b commit 62c3f8a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions cardano-testnet/cardano-testnet.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ test-suite cardano-testnet-tests
, hedgehog-extras
, filepath
, tasty
-- , tasty-expected-failure
, tasty-hedgehog

other-modules: Spec.Plutus
Expand Down
1 change: 1 addition & 0 deletions cardano-testnet/configuration
1 change: 1 addition & 0 deletions cardano-testnet/scripts
4 changes: 4 additions & 0 deletions cardano-testnet/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import Prelude

import qualified System.Environment as E
import qualified Test.Tasty as T
-- import qualified Test.Tasty.ExpectedFailure as T
import qualified Test.Tasty.Ingredients as T
import qualified Test.Tasty.Hedgehog as H

import qualified Spec.Plutus

-- ignoreInNix :: T.TestTree -> T.TestTree
-- ignoreInNix

tests :: IO T.TestTree
tests = do
pure $ T.testGroup "test/Spec.hs"
Expand Down
5 changes: 5 additions & 0 deletions cardano-testnet/test/Spec/Plutus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ module Spec.Plutus
import Control.Monad
import Control.Monad.IO.Class (liftIO)
import Data.Function
import Data.Functor ((<$>))
import Data.Int
import Data.Maybe
import Data.Tuple
import Hedgehog (Property)
import Prelude (head)
import System.FilePath ((</>))
Expand All @@ -20,12 +22,15 @@ import qualified Hedgehog.Extras.Stock.IO.Network.Sprocket as IO
import qualified Hedgehog.Extras.Test.Base as H
import qualified Hedgehog.Extras.Test.Process as H
import qualified System.Directory as IO
import qualified System.Environment as IO
import qualified Test.Base as H
import qualified Testnet.Cardano as H
import qualified Testnet.Conf as H

hprop_plutus :: Property
hprop_plutus = H.integration . H.runFinallies . H.workspace "chairman" $ \tempAbsPath' -> do
H.noteShowIO_ $ fmap fst <$> IO.getEnvironment

void $ H.note tempAbsPath'
conf <- H.mkConf tempAbsPath' Nothing
projectBase <- liftIO $ IO.makeAbsolute (H.base conf)
Expand Down

0 comments on commit 62c3f8a

Please sign in to comment.