Skip to content
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

test-suite failures #73

Closed
bergmark opened this issue Jan 17, 2016 · 4 comments
Closed

test-suite failures #73

bergmark opened this issue Jan 17, 2016 · 4 comments

Comments

@bergmark
Copy link

The wiki-suite test seems to never finish, noticed both on ubuntu when building stackage nightly and when running it on OS X. On OS X I just get a blank browser window, after Ctrl-Cing some errors appear before exiting:

Test suite wiki-suite: RUNNING...
("blank-canvas.wiki/images/Load_Image_Data_URL_2.png","Load_Image_Data_URL_2")
"Load_Image_Data_URL_2"
# open (for blank-canvas.wiki/images/Load_Image_Data_URL_2.png)
"Exception in blank-canvas application:"
images/Haskell.jpg: openBinaryFile: does not exist (No such file or directory)
wiki-suite: images/Haskell.jpg: openBinaryFile: does not exist (No such file or directory)
"Exception in blank-canvas application:"
images/Haskell.jpg: openBinaryFile: does not exist (No such file or directory)
wiki-suite: images/Haskell.jpg: openBinaryFile: does not exist (No such file or directory)
"Exception in blank-canvas application:"
images/Haskell.jpg: openBinaryFile: does not exist (No such file or directory)
wiki-suite: images/Haskell.jpg: openBinaryFile: does not exist (No such file or directory)
user interrupt
Test suite wiki-suite: FAIL
Test suite logged to: dist/test/blank-canvas-0.6-wiki-suite.log

I've disabled running the test-suite on stackage for this reason.

Additionally the test suite also doesn't work if used with stack since there's no dist directory then:

./dist/build/wiki-suite/wiki-suite: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
@andygill
Copy link
Member

The wiki suite will only work if you have a browser to run the blank-canvas actions. I'm not sure how to script this (I looked into headerless browsers, for example). If you tell me how to adapt the cabal file, I'd be happy to turn off the wiki-suite by default in the repo.

@bergmark
Copy link
Author

Perhaps webdriver is interesting in order to run the tests headerless?

For stackage it doesn't matter if there's a flag or not; Currently the test is in the list of skipped-tests so It won't cause problems. If you do end up adding support for headerless testing we can revisit how to have stackage run them again.

@andygill
Copy link
Member

Thanks!

@RyanGlScott
Copy link
Member

As of commit 43f1fc5, blank-canvas.cabal no longer includes the wiki-suite as a test suite. (It now lives in a separate .cabal file entirely in a subdirectory.)

I have uploaded blank-canvas-0.7.1 to Hackage with these changes, so Stackage's automated testing should no longer get tripped up. I'll opt to close this issue as a result, but please re-open if there are additional steps that blank-canvas should take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants