test: add ARNES self-tests and docs index
This commit is contained in:
BIN
scripts/__pycache__/agent_status.cpython-313.pyc
Normal file
BIN
scripts/__pycache__/agent_status.cpython-313.pyc
Normal file
Binary file not shown.
BIN
scripts/__pycache__/new_ticket.cpython-313.pyc
Normal file
BIN
scripts/__pycache__/new_ticket.cpython-313.pyc
Normal file
Binary file not shown.
BIN
scripts/__pycache__/publish_ticket.cpython-313.pyc
Normal file
BIN
scripts/__pycache__/publish_ticket.cpython-313.pyc
Normal file
Binary file not shown.
@@ -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"
|
||||
|
||||
@@ -21,6 +21,7 @@ required=(
|
||||
"README.md"
|
||||
"HOWTO.md"
|
||||
"TEMPLATE.md"
|
||||
"docs/README.md"
|
||||
"docs/repository-layout.md"
|
||||
"docs/scripts-reference.md"
|
||||
"harness/agents.matrix.yml"
|
||||
|
||||
Reference in New Issue
Block a user