New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hspec support request #9343
Comments
Why could not |
Finding its ppid is POSIX-portable; finding out anything about its parent isn't ( |
Also note that Windows is a wildcard here. |
True, and nevertheless pretty much every OS provides means to determine a parent process. We might lack a crossplatform Haskell library to do this reliably, in which case it would be better to write one instead of establishing an ad-hoc communication channel between |
note that running a testsuite already does affect the environment, in that it ensures
|
@peterbecich a totally under-engineered option is to expand the message to the user:
(maybe |
Describe the feature request
I have a feature request in Hspec to make it easier to run specific tests with Cabal: hspec/hspec#862
Hspec needs to know if it is run by Cabal.
@sol suggests this can be implemented if
cabal test
sets the environment variableCABAL_TEST_COMMAND=cabal
Additional context
Currently a failing test will print:
To use this suggestion with Cabal, it must be modified to this:
With this environment variable, Hspec will print out this feedback for Cabal.
The text was updated successfully, but these errors were encountered: