Test suite for the nodejs on fedora
  • Shell 87%
  • JavaScript 11.1%
  • C++ 1.9%
Find a file
2025-01-14 16:05:26 +01:00
.fmf fix oversite in install-rpm.sh 2025-01-09 15:33:08 +01:00
Integration added few TCs for nodejs-devel 2025-01-10 16:04:52 +01:00
Smoke New test for sqlite sessions 2025-01-14 16:05:26 +01:00
.gitignore added gitignore 2025-01-10 16:01:48 +01:00
install-rpms.sh shows in testing farm as err: so i provided more info 2025-01-10 17:44:42 +01:00
main.fmf rewritte of test 2025-01-08 12:49:33 +01:00
plans.fmf added some way to test TCs 2025-01-10 16:42:12 +01:00
README.md adjustment to the kodi build alias code 2025-01-13 16:39:14 +01:00

Node.JS Tests

Nodejs test suite for Fedora Linux

These tests made for Test Management Tool, using .fmf format for metadata

Tmt docs for reference

Usage locally

Make sure you got tmt and its tools installed:

sudo dnf install -y tmt tmt+provision-virtual

or if you want all tools (virtual and container):

sudo dnf install -y tmt+all

If not provided create koji build and set env variable

you can use the following allias to create build and set env automatically:


alias scratchbuild='set -x; \
  SRC_RPM=$(ls *.src.rpm | head -n 1) && \
  echo "Found source RPM: $SRC_RPM" && \
  if [ -z "$SRC_RPM" ]; then \
    echo "No source RPM file found."; \
    return 1; \
  fi && \
  BUILD_OUTPUT=$(koji build --scratch rawhide $SRC_RPM 2>&1) && \
  echo "Koji build output: $BUILD_OUTPUT" && \
  KOJI_TASK_ID=$(echo "$BUILD_OUTPUT" | grep -oP "(?<=Task ID: )[0-9]+") && \
  if [ -n "$KOJI_TASK_ID" ]; then \
    export KOJI_TASK_ID="$KOJI_TASK_ID"; \
    echo "Scratch build started. Task ID: $KOJI_TASK_ID"; \
  else \
    echo "Failed to extract Task ID. Build output: $BUILD_OUTPUT"; \
    return 1; \
  fi; \
  set +x'

check what test plans and sub plans are available:

tmt plans

check what individual tests are available:

tmt tests

Run all available tests

tmt run

Run chosen plan or individual test

tmt plans
tmt run plans -n <plan>
tmt tests
tmt run tests -n <test>