Skip to content

Commit

Permalink
fix(tasty): disable coloured output to fix error message parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jan 6, 2025
1 parent b24f2fc commit 053781c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lua/neotest-haskell/tasty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,18 @@ end
---@return string[] test_opts The Cabal test options for matching a tasty filter.
function tasty.get_cabal_test_opts(pos)
local pattern = mk_tasty_pattern(pos)
return pattern and {
'--test-option',
'-p',
'--test-option',
pattern,
} or {}
return pattern
and {
'--test-option',
'--color',
'--test-option',
'never',
'--test-option',
'-p',
'--test-option',
pattern,
}
or {}
end

---@param pos neotest.Tree The position.
Expand Down

0 comments on commit 053781c

Please sign in to comment.