
Owpenbot Test
- 3 installs
- 29 repo stars
- Updated March 27, 2026
- different-ai/openwork-hub
Runs owpenbot/openwrk integration tests using local Telegram test tokens supplied via a gitignored .env file.
About
Executes the owpenbot and openwrk integration test script, auto-detecting repos and seeding Telegram config from test tokens. A developer uses it to run these Telegram bot integration tests.
- Single run-tests.sh script with auto repo detection
- Telegram test tokens kept local in a gitignored .env
Owpenbot Test by the numbers
- 3 all-time installs (skills.sh)
- Ranked #1,649 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/different-ai/openwork-hub --skill owpenbot-testAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 3 |
|---|---|
| repo stars | ★ 29 |
| Last updated | March 27, 2026 |
| Repository | different-ai/openwork-hub ↗ |
What it does
Runs owpenbot/openwrk integration tests using local Telegram test tokens supplied via a gitignored .env file.
Files
Quick Usage (Already Configured)
Run owpenbot + openwrk tests
skills/owpenbot-test/scripts/run-tests.shFirst-Time Setup (If Not Configured)
1. Copy skills/owpenbot-test/.env.example to skills/owpenbot-test/.env. 2. Fill in:
OWPENBOT_TEST_TOKEN_ENVOWPENBOT_TEST_TOKEN_CLI- (Optional)
OWPENBOT_DIRandOPENWORK_DIRto override auto-detection.
3. Run the script above.
Common Gotchas
.envis optional but ignored by git; tokens should stay local.- The script will auto-detect repos under
_repos/owpenbotand_repos/openworkif dirs are not set. .env.examplelists the minimum config required by the script.OWPENBOT_TEST_TOKEN_ENVis used by the CLI tests to seed Telegram config.
OWPENBOT_DIR=
OPENWORK_DIR=
OWPENBOT_TEST_TOKEN_ENV=
OWPENBOT_TEST_TOKEN_CLI=
.env
#!/usr/bin/env bash
set -euo pipefail
SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
ENV_FILE="${SKILL_DIR}/.env"
REPO_ROOT="$(cd "${SKILL_DIR}/../../.." && pwd)"
if [[ -f "${ENV_FILE}" ]]; then
set -a
# shellcheck disable=SC1090
. "${ENV_FILE}"
set +a
fi
require_var() {
local name="$1"
if [[ -z "${!name:-}" ]]; then
echo "Missing ${name}. Set it in ${ENV_FILE} or your environment." >&2
exit 1
fi
}
pick_latest_dir() {
local dir="$1"
local latest=""
if [[ -d "${dir}" ]]; then
latest=$(ls -td "${dir}"/* 2>/dev/null | head -n 1 || true)
fi
if [[ -n "${latest}" && -d "${latest}" ]]; then
echo "${latest}"
return 0
fi
return 1
}
if [[ -z "${OWPENBOT_DIR:-}" ]]; then
if latest=$(pick_latest_dir "${REPO_ROOT}/_repos/owpenbot/_worktrees"); then
OWPENBOT_DIR="${latest}"
elif [[ -d "${REPO_ROOT}/_repos/owpenbot" ]]; then
OWPENBOT_DIR="${REPO_ROOT}/_repos/owpenbot"
fi
fi
if [[ -z "${OPENWORK_DIR:-}" ]]; then
if latest=$(pick_latest_dir "${REPO_ROOT}/_repos/openwork/_worktrees"); then
OPENWORK_DIR="${latest}"
elif [[ -d "${REPO_ROOT}/_repos/openwork" ]]; then
OPENWORK_DIR="${REPO_ROOT}/_repos/openwork"
fi
fi
require_var OWPENBOT_DIR
require_var OPENWORK_DIR
require_var OWPENBOT_TEST_TOKEN_ENV
require_var OWPENBOT_TEST_TOKEN_CLI
if [[ ! -d "${OWPENBOT_DIR}" ]]; then
echo "OWPENBOT_DIR not found: ${OWPENBOT_DIR}" >&2
exit 1
fi
if [[ ! -d "${OPENWORK_DIR}" ]]; then
echo "OPENWORK_DIR not found: ${OPENWORK_DIR}" >&2
exit 1
fi
echo "Running owpenbot tests..."
echo "Using owpenbot repo: ${OWPENBOT_DIR}"
pnpm -C "${OWPENBOT_DIR}" test:unit
pnpm -C "${OWPENBOT_DIR}" test:cli
pnpm -C "${OWPENBOT_DIR}" test:npx
pnpm -C "${OWPENBOT_DIR}" test:smoke
echo "Running openwrk tests..."
echo "Using openwork repo: ${OPENWORK_DIR}"
pnpm -C "${OPENWORK_DIR}" test:openwrk
Related skills
Testing & QAtesting