Skip to content

LambdaTest/test-at-scale-js

Repository files navigation

LAMBDATEST Logo

Test At Scale

N|Solid

Test Smarter, Release Faster with test-at-scale.

test-at-scale-js

Custom runners written on top of javascript testing frameworks. For running Test-at-scale locally, follow this.

This runner supports Mocha, Jest and jasmine. To request support for additional frameworks, raise an issue in this repository.

Project Structure

Monorepo consisting of separate packages for each javascript testing framework managed using lerna.

  • test-at-scale-core - Common package containing utilities and models being used
  • test-at-scale-jasmine-runner - Custom jasmine runner
  • test-at-scale-jest-runner - Custom jest runner
  • test-at-scale-mocha-runner - Custom mocha runner

Contributing

  • Clone this monorepo.
  • yarn bootstrap

Building a subpackage

  • yarn build:mocha

Build all

  • yarn build

Adding a dependency in a sub-package

Use lerna commands.

Building it locally with test-at-scale's nucleus image

In order to use it (or test it) locally with test-at-scale's nucleus image, create an npm package zip using command npm pack at root of this repo and make the following changes in nucleus/Dockerfile (of test-at-scale repo):

Replace

RUN npm i --global-style --legacy-peer-deps \
    @lambdatest/test-at-scale-jasmine-runner@~0.1.0 \
    @lambdatest/test-at-scale-mocha-runner@~0.1.0 \
    @lambdatest/test-at-scale-jest-runner@~0.1.0

with

COPY <dir_containing_zip>/lambdatest-1.0.0.tgz .
RUN npm i --global-style --legacy-peer-deps lambdatest-1.0.0.tgz

Used By

This project is used by:

  • LambdaTest TAS