Skip to content

Commit

Permalink
Ignore failing cabal-fmt test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Nov 10, 2022
1 parent 8ea985b commit 8c1eeae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/hls-cabal-fmt-plugin/test/Main.hs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
module Main
( main
) where

import qualified Ide.Plugin.CabalFmt as CabalFmt
import System.Directory (findExecutable)
import System.Directory (findExecutable)
import System.FilePath
import Test.Hls

Expand Down Expand Up @@ -36,10 +35,12 @@ cabalFmtPlugin = CabalFmt.descriptor mempty "cabal-fmt"

tests :: CabalFmtFound -> TestTree
tests found = testGroup "cabal-fmt"
[ cabalFmtGolden found "formats a simple document" "simple_testdata" "formatted_document" $ \doc -> do
[ knownBrokenOnWindows "Eats newlines between comments" $
cabalFmtGolden found "formats a simple document" "simple_testdata" "formatted_document" $ \doc -> do
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing)

, cabalFmtGolden found "formats a document with expand:src comment" "commented_testdata" "formatted_document" $ \doc -> do
, knownBrokenOnWindows "expand:src comment bug in cabal-fmt on windows" $
cabalFmtGolden found "formats a document with expand:src comment" "commented_testdata" "formatted_document" $ \doc -> do
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing)

, cabalFmtGolden found "formats a document with lib information" "lib_testdata" "formatted_document" $ \doc -> do
Expand Down

0 comments on commit 8c1eeae

Please sign in to comment.