{"action":"opened","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2539","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2539/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2539/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2539/events","html_url":"https://github.com/haskell/cabal/issues/2539","id":69143703,"number":2539,"title":"cabal test complains that test suites are not enabled after change to cabal file","user":{"login":"taladar","id":21060,"avatar_url":"https://avatars.githubusercontent.com/u/21060?v=3","gravatar_id":"","url":"https://api.github.com/users/taladar","html_url":"https://github.com/taladar","followers_url":"https://api.github.com/users/taladar/followers","following_url":"https://api.github.com/users/taladar/following{/other_user}","gists_url":"https://api.github.com/users/taladar/gists{/gist_id}","starred_url":"https://api.github.com/users/taladar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taladar/subscriptions","organizations_url":"https://api.github.com/users/taladar/orgs","repos_url":"https://api.github.com/users/taladar/repos","events_url":"https://api.github.com/users/taladar/events{/privacy}","received_events_url":"https://api.github.com/users/taladar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-17T13:54:34Z","updated_at":"2015-04-17T13:54:34Z","closed_at":null,"body":"I am working on a cabal project which has been configured with\r\n\r\n    cabal configure --enable-tests\r\n\r\nand cabal test complains at some point that I need to add a dependency to the tests (Could not find...it is a member of the hidden package...perhaps you need to add ... to cabal file). I do so and invoke cabal test again. Now it presents the error\r\n\r\n    cabal: Cannot build the test suite 'spec' because test suites are not enabled.\r\n    Run configure with the flag --enable-tests\r\n\r\ninstead of the expected automatic reconfiguration with last set of flags I explicitly used (which included --enable-tests).\r\n\r\nThe cabal version is\r\n\r\n    cabal-install version 1.22.0.0\r\n    using version 1.22.0.0 of the Cabal library\r\n  \r\non GHC 7.8.4 on Linux"}}