Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit b17a2c0

Browse files
author
Patrick Thomson
committed
Better nomenclature.
1 parent 4de36c5 commit b17a2c0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/Integration/Spec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{-# LANGUAGE ImplicitParams, LambdaCase, NamedFieldPuns #-}
2-
module Integration.Spec (spec) where
2+
module Integration.Spec (testTree) where
33

44
import Control.Exception (throw)
55
import Data.Foldable (find)
@@ -17,8 +17,8 @@ import Test.Tasty.Golden
1717
languages :: [FilePath]
1818
languages = ["go", "javascript", "json", "python", "ruby", "typescript", "tsx"]
1919

20-
spec :: (?session :: TaskSession) => TestTree
21-
spec = testGroup "Integration (golden tests)" $ fmap testsForLanguage languages
20+
testTree :: (?session :: TaskSession) => TestTree
21+
testTree = testGroup "Integration (golden tests)" $ fmap testsForLanguage languages
2222

2323
testsForLanguage :: (?session :: TaskSession) => FilePath -> TestTree
2424
testsForLanguage language = do

test/Semantic/CLI/Spec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Semantic.CLI.Spec (spec) where
1+
module Semantic.CLI.Spec (testTree) where
22

33
import Data.ByteString.Builder
44
import Semantic.Api hiding (Blob, BlobPair, File)
@@ -11,8 +11,8 @@ import SpecHelpers
1111
import Test.Tasty
1212
import Test.Tasty.Golden
1313

14-
spec :: TestTree
15-
spec = testGroup "Semantic.CLI"
14+
testTree :: TestTree
15+
testTree = testGroup "Semantic.CLI"
1616
[ testGroup "parseDiffBuilder" $ fmap testForDiffFixture diffFixtures
1717
, testGroup "parseTermBuilder" $ fmap testForParseFixture parseFixtures
1818
]

test/Spec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ import Test.Tasty.Hspec as Tasty
4444

4545
tests :: (?session :: TaskSession) => [TestTree]
4646
tests =
47-
[ Integration.Spec.spec
48-
, Semantic.CLI.Spec.spec
47+
[ Integration.Spec.testTree
48+
, Semantic.CLI.Spec.testTree
4949
, Data.Source.Spec.testTree
5050
, Semantic.Stat.Spec.testTree
5151
]

0 commit comments

Comments
 (0)