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

Add browser tests: Chrome, IE11, Firefox, Safari PhantomJS #73

Closed
wants to merge 1 commit into from
Closed

Add browser tests: Chrome, IE11, Firefox, Safari PhantomJS #73

wants to merge 1 commit into from

Conversation

hustf
Copy link
Collaborator

@hustf hustf commented Oct 22, 2017

Sorely needed tests, ref. issue #21, #52. Also an attempt to address logging, issue #28, reasons for closing, issue #29. To limit the scope, binary data tests #18 are not included in this PR.

Sorely needed input regarding spawning browsers on osx / linux. For windows, setting the command line switches so as to not restore old sessions and cause confusion took some experimenting.

Also, if someone with admin access to this repository can provide a coveralls repo token encrypted by appveyor, we can add coverage from windows tests. Coverage is on 73% now, on appveyor.

modified   .travis.yml:               Drop 0.4, add 0.6, install firefox latest
modified   appveyor.yml:              Compile HttpServer before adding WebSockets to
                                      remove warnings from other packages. Tested coveralls
                                      submittal (not included, was 73%).
new file   test/browsertest.html	  Page for all browsers with javascript and three test websockets.
new file   test/browsertest.jl		  Opens available browsers. For those that respond on the test system,
                                      test handshakes, text communication, closing from both ends.
new file   test/server_functions.jl   httpserver, websocket distributor.
new file   test/event_functions.jl    Event functions for server_functions, httpserver
new file   test/favicon.ico           A Julia icon for opened browser tabs.
new file   test/handler_functions_websockets_general_test.jl
                                      Multi-instance functions for reading one websocket each.
new file   test/handler_functions_websockets_subprotocol_test.jl
								      Multi-instance functions for reading one websocket each.
new file   test/log_functions_test.jl Colorful console feedback with locked writes.
new file   test/open_unix_os_browsers.jl   For spawning browsers on travis
new file   test/open_windows_browsers.jl   For spawning browsers on appveyor
modified   test/runtests.jl			  Added one line at the end

modified   .travis.yml:               Drop 0.4, add 0.6, install firefox latest
modified   appveyor.yml:              Compile HttpServer before adding WebSockets to
                                      remove warnings from other packages. Tested coveralls
                                      submittal (not included, was 73%).
new file   test/browsertest.html	  Page for all browsers with javascript and three test websockets.
new file   test/browsertest.jl		  Opens available browsers. For those that respond on the test system,
                                      test handshakes, text communication, closing from both ends.
new file   test/server_functions.jl   httpserver, websocket distributor.
new file   test/event_functions.jl    Event functions for server_functions, httpserver
new file   test/favicon.ico           A Julia icon for opened browser tabs.
new file   test/handler_functions_websockets_general_test.jl
                                      Multi-instance functions for reading one websocket each.
new file   test/handler_functions_websockets_subprotocol_test.jl
								      Multi-instance functions for reading one websocket each.
new file   test/log_functions_test.jl Colorful console feedback with locked writes.
new file   test/open_unix_os_browsers.jl   For spawning browsers on travis
new file   test/open_windows_browsers.jl   For spawning browsers on appveyor
modified   test/runtests.jl			  Added one line at the end.
@coveralls
Copy link

coveralls commented Oct 22, 2017

Coverage Status

Coverage decreased (-0.4%) to 49.645% when pulling f976330 on hustf:addBrowseTest into 78987bd on JuliaWeb:master.

@shashi
Copy link
Contributor

shashi commented Oct 23, 2017

This is nice! Feel free to hit the merge button @hustf ! This package uses 4 space indentation, I see you use tabs. I'd say this is not a big deal as long as we don't mix both in the same file.

Cheers 🎉

@hustf
Copy link
Collaborator Author

hustf commented Oct 23, 2017

Thanks Shashi, but I want it to work on unix osx first. Dont have any of those where I am.

In the meantime, can you tag the current state? I dont have a full name user.

@hustf
Copy link
Collaborator Author

hustf commented Oct 31, 2017

Due to file name changes while getting this to work on osx, I think the revision history will be clearer by not accepting this PR. Will make a new PR shortly.

@hustf hustf closed this Oct 31, 2017
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

Successfully merging this pull request may close these issues.

3 participants