test: add ARNES self-tests and docs index

This commit is contained in:
rikrdo
2026-05-18 00:30:39 +02:00
parent b396b6d3c9
commit aaf33880c4
11 changed files with 157 additions and 3 deletions

View File

@@ -38,7 +38,12 @@ else
CSSFW="skeleton"
fi
TEST_CMD="$(ask 'Test command' 'make test')"
DEFAULT_TEST_CMD="echo TODO-set-test-command"
if [ "$BACKEND" = "python/flask" ]; then
DEFAULT_TEST_CMD="python3 -m unittest discover -s $APP_DIR/tests -v"
fi
TEST_CMD="$(ask 'Test command' "$DEFAULT_TEST_CMD")"
LINT_CMD="$(ask 'Lint command (optional)' '')"
MODEL_MODE="$(ask 'Model mode (lean/balanced/power)' 'lean')"
ADD_BOOTSTRAP="$(ask 'Create bootstrap ticket F-001 now? (y/n)' 'y')"
@@ -52,7 +57,19 @@ Configured by ARNES start wizard.
EOF
if [ "$BACKEND" = "python/flask" ]; then
mkdir -p "$APP_DIR/templates" "$APP_DIR/static/js" "$APP_DIR/static/css" "$APP_DIR/static/images"
mkdir -p "$APP_DIR/templates" "$APP_DIR/static/js" "$APP_DIR/static/css" "$APP_DIR/static/images" "$APP_DIR/tests"
[ -f "$APP_DIR/tests/test_bootstrap.py" ] || cat > "$APP_DIR/tests/test_bootstrap.py" <<'PY'
import unittest
class BootstrapSmokeTest(unittest.TestCase):
def test_bootstrap(self):
self.assertTrue(True)
if __name__ == '__main__':
unittest.main()
PY
fi
if [ "$CSSFW" = "skeleton" ]; then
@@ -195,3 +212,4 @@ echo "- Ticket tool: python3 scripts/new_ticket.py"
echo "- Publish tool: python3 scripts/publish_ticket.py --feature-id F-001"
echo "- Verify: ./scripts/verify.sh"
echo "- Runtime: python3 scripts/agent_status.py show"
echo "- Reminder: configure git remote before final publish if missing"