Skip to content

Commit

Permalink
Find stack targets, ...
Browse files Browse the repository at this point in the history
At the moment, if one test suite depens on hspec or on a lib, then all test suites will be loaded with their corresponding libs: commercialhaskell/stack#3695
  • Loading branch information
Diogo Castro committed Dec 22, 2017
1 parent 83913c3 commit eba5370
Show file tree
Hide file tree
Showing 11 changed files with 2,343 additions and 1,892 deletions.
8 changes: 8 additions & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Notes

* in ghci, do `let main = Main.main` > `:main -m etc` to disambiguate between different mains that may be in scope (this happens in HIE)
* in HIE, running the tests a second time results in this: ** Exception: ./test-main.log: openFile: resource busy (file is locked)
for HIE, we'd need `let main = hspec Spec.spec`. this may different on a per-project basis, so put it in configuration? dhall config file?

* Discovered tests are organized by module name, minus "Spec". I.e., ApplyRefactPluginSpec -> ApplyRefactPlugin
* But NOT non-discovered tests (see `stack ghci --with-ghc intero haskell-ide-engine:test:haskell-ide-func-test haskell-ide-engine:lib`)
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# README
## This is the README for the "languageprovider-sample"
-------------------
# Haskell Test Runner for VSCode

## Troubleshooting

* > cannot satisfy -package quickcheck-instances-0.3.12
You might have to run `stack build && stack test` once

## This is the README for the "languageprovider-sample"

This folder contains a sample VS code extension that demonstrates an extension that runs a language server

Expand All @@ -11,8 +17,8 @@ The code for the extension is in the 'client' folder. It uses the 'vscode-langua

The language server is located in the 'server' folder.

## How to run locally

# How to run locally
* `npm install` to initialize the extension and the server
* `npm run compile` to compile the extension and the server
* open this folder in VS Code. In the Debug viewlet, run 'Launch Client' from drop-down to launch the extension and attach to the extension.
Expand Down
Loading

0 comments on commit eba5370

Please sign in to comment.