Tests fail silently if the Java runtime is not installed
Summary
The tests assume a Java runtime environment is installed, and fail silently otherwise.
Steps to reproduce
- Do not have a Java runtime installed.
- Clone this repository
-
cd
into the repository root - Get into a Nix shell by running
nix-shell
- Run
cabal test
What is the current bug behavior?
The tests fail with many errors such as ConnectionFailure Network.Socket.connect: <socket: 109>: does not exist (Connection refused)
What is the expected correct behavior?
The tests pass
Possible fixes
- I think this kind of problem could be solved by adding a Java runtime to the Nix environment?
- Otherwise, detect failure when trying to run
devops/coreNLP/startServer.sh
fromtest/drivers/hspec/Main.hs
, offer a helpful error message, and abort the process.