Socket
Book a DemoInstallSign in
Socket

@ably-labs/uts-chat

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ably-labs/uts-chat

Unified Test Suite for Chat SDKs. An executable npm package designed to provide a consistent testing environment for different Ably Chat SDKs

latest
npmnpm
Version
0.0.7
Version published
Weekly downloads
2
-33.33%
Maintainers
0
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts