Skellington-Closet / slack-mock

A Slack API mocker for Slack bot integration tests.
MIT License
64 stars 15 forks source link

Refactors RTM mocker #16

Closed colestrode closed 7 years ago

colestrode commented 7 years ago

Adds startServer and stopServer methods. These can be used for reconnection testing. stopServer can also be used in an after statement to clean up web socket servers that are no longer needed.

Refactors the way the server is established: instead of one shared web socket server, each access token will get a different web socket server. Servers can be started and stopped by passing a token, or will be automatically started for a token passed to the Web API rtm.start method.

closes #12 closes #14
closes #15

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 1bb901af535e0a42fb85cac664e5bef930edf3c3 on rtm into deca6c1103b0d70f0e1bb227a403a8a1ae91d38e on master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 330a8d25de932f5b426e19295e14bcb1be7057c1 on rtm into deca6c1103b0d70f0e1bb227a403a8a1ae91d38e on master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling e5828384e6ba1ba5ef0cb78768fde099d808e43d on rtm into deca6c1103b0d70f0e1bb227a403a8a1ae91d38e on master.