Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
test.js
test_connect.js
test_connect.txt
test_msgpack_serialization.js
test_msgpack_serialization.txt
test_pubsub_basic.js
test_pubsub_basic.txt
test_pubsub_complex.js
test_pubsub_complex.txt
test_pubsub_eligible.js
test_pubsub_eligible.txt
test_pubsub_exclude.js
test_pubsub_exclude.txt
test_pubsub_excludeme.js
test_pubsub_excludeme.txt
test_pubsub_options.js
test_pubsub_options.txt
test_pubsub_prefix_sub.js
test_pubsub_prefix_sub.txt
test_pubsub_wildcard_sub.js
test_pubsub_wildcard_sub.txt
test_rawsocket_protocol.js
test_rpc_arguments.js
test_rpc_arguments.txt
test_rpc_complex.js
test_rpc_complex.txt
test_rpc_error.js
test_rpc_error.txt
test_rpc_options.js
test_rpc_options.txt
test_rpc_progress.js
test_rpc_progress.txt
test_rpc_routing.js
test_rpc_routing.txt
test_rpc_slowsquare.js
test_rpc_slowsquare.txt
testutil.js

README.md

Tests for AutobahnJS functionality

Tests run using NodeJS and the nodeunit package.

First, ensure that a Crossbar.io instance is running with the default configuration (use crossbar init if needed). This will run a WAMP-over-WebSocket transport at ws://localhost:8080/ws.

You should be able to use any compliant WAMP router (on ws://localhost:8080/ws) - your mileage may vary though.

Then, open a terminal and run npm test in the package directory.

First run

  • You need to have NodeJS installed.
  • Run npm install in the package directory

If all assertions fail, this may be because of different line ending formats for the created test_*.txt files. In this case you need to remove the files and create a known good set of files on your system!

Here is a successful testrun:

oberstet@thinkpad-t430s:~/scm/autobahn/AutobahnJS/package$ npm test

> autobahn@0.9.7 test /home/oberstet/scm/autobahn/AutobahnJS/package
> nodeunit test/test.js


test.js
✔ testConnect
✔ testRpcArguments
✔ testRpcComplex
✔ testRpcError
✔ testRpcOptions
✔ testRpcProgress
✔ testRpcSlowsquare
✔ testRpcRouting
✔ testRpcCallerDiscloseMe
✔ testPubsubBasic
✔ testPubsubComplex
✔ testPubsubOptions
✔ testPubsubExcludeMe
✔ testPubsubExclude
✔ testPubsubPrefixSub
✔ testPubsubWildcardSub
✔ testPubsubPublisherDiscloseMe

OK: 25 assertions (9444ms)