0.0.5 • Published 8 months ago

@ably-labs/uts-chat v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Unified Test Suite For Ably Chat SDKs

Unified Test Suite for Chat SDKs (UTS-Chat) is an executable npm package designed to provide a consistent testing environment for different Chat SDKs. It streamlines the testing process by abstracting SDK-specific details into a common interface, allowing you to write tests once and run them across various SDK implementations.

This Test Suite is based on the UTS for Pub/Sub SDKs, see more detailed description of the underlying features and components Pub/Sub UTS repo.

Installation

UTS-Chat can be installed locally or globally using npm:

# Install globally
npm install -g @ably-labs/uts-chat

# Install locally
npm install --save-dev @ably-labs/uts-chat

Usage

To run the test suites using UTS-Chat, you need to specify an environment variable ADAPTER_EXECUTABLE, which points to the command that starts the adapter for your desired SDK.

# Assuming that `my-java-adapter.jar` is an adapter for ably-java
ADAPTER_EXECUTABLE="java -jar my-java-adapter.jar" uts-chat

Running locally

JS adapter is avaialable locally at ./adapters/js. You can run UTS Chat tests against it using a single command:

ADAPTER_EXECUTABLE="npm run start:adapter:js" npm run start

or, alternatively, you can launch all UTS components separately for better control and debugging:

# launch dispatcher first
npm run start:dispatcher

# in a separate console: launch js adapter
npm run start:adapter:js

# in a separate console: launch tests
npm run start:test

Unified SDK client

This Unified Test Suite implements Unified SDK Client for Chat SDK via providing an RpcChatClient class for SDK's core functionality. It can be found in test/unified-clients directory.

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago