From 78c03a27462e230a4cc123fe19aa15e945254d0b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sun, 1 Dec 2024 16:42:20 +0100 Subject: [PATCH] revert: refs #7356 add files --- create_branch_and_copy_e2e.sh | 42 ----------------------------- create_branch_and_copy_e2e_echo.sh | 43 ------------------------------ package.json | 3 +-- 3 files changed, 1 insertion(+), 87 deletions(-) delete mode 100644 create_branch_and_copy_e2e.sh delete mode 100644 create_branch_and_copy_e2e_echo.sh diff --git a/create_branch_and_copy_e2e.sh b/create_branch_and_copy_e2e.sh deleted file mode 100644 index 6c280ddd1..000000000 --- a/create_branch_and_copy_e2e.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# Verificar si se pasaron los parámetros correctos -if [ "$#" -ne 3 ]; then - echo "Uso: $0 " - exit 1 -fi - -# Asignar parámetros a variables -ID_TAREA=$1 -MODULO=$2 -E2E_PATH=$3 - -# Nombre de la rama -BRANCH_NAME="${ID_TAREA}_${MODULO}_missing_e2e" - -# Paso 1: Crear la rama local a partir de dev -git checkout dev -git pull origin dev -git checkout -b "${BRANCH_NAME}" - -# Paso 2: Copiar archivos al directorio destino -SOURCE_DIR="../salix/e2e/paths/${E2E_PATH}" -DEST_DIR="../test-processing/tests" - -mkdir -p "${DEST_DIR}" -cp -r "${SOURCE_DIR}"/* "${DEST_DIR}" - -# Paso 3: Ejecutar el comando node -cd ../test-processing -PROCESS_SCRIPT="../test-processing/index.js" -node "${PROCESS_SCRIPT}" -cd ../salix-front - -# Paso 4: Copiar archivos procesados al destino Cypress -PROCESSED_DIR="../test-processing/processedTests" -CYPRESS_DEST="./test/cypress/integration/${MODULO}" -mkdir -p "${CYPRESS_DEST}" -cp -r "${PROCESSED_DIR}"/* "${CYPRESS_DEST}" - -# Confirmación final -echo "Flujo completado exitosamente. Revisa los resultados." diff --git a/create_branch_and_copy_e2e_echo.sh b/create_branch_and_copy_e2e_echo.sh deleted file mode 100644 index d89ea56c6..000000000 --- a/create_branch_and_copy_e2e_echo.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -# Verificar si se pasaron los parámetros correctos -if [ "$#" -ne 3 ]; then - echo "Uso: $0 " - exit 1 -fi - -# Asignar parámetros a variables -ID_TAREA=$1 -MODULO=$2 -E2E_PATH=$3 - -# Nombre de la rama -BRANCH_NAME="${ID_TAREA}_${MODULO}_missing_e2e" - -# Paso 1: Crear la rama local a partir de dev -echo "git checkout dev" -echo "git pull origin dev" -echo "git checkout -b ${BRANCH_NAME}" - -# Paso 2: Copiar archivos al directorio destino -SOURCE_DIR="../salix/e2e/paths/${E2E_PATH}" -DEST_DIR="../test-processing/tests" - -echo "mkdir -p ${DEST_DIR}" -echo "cp -r ${SOURCE_DIR}/* ${DEST_DIR}" - -# Paso 3: Ejecutar el comando node -echo "cd ../test-processing" -PROCESS_SCRIPT="../test-processing/index.js" -echo "node ${PROCESS_SCRIPT}" -echo "cd ../salix-front" - -# Paso 4: Copiar archivos procesados al destino Cypress -PROCESSED_DIR="../test-processing/processedTests" -CYPRESS_DEST="./test/cypress/integration/${MODULO}" - -echo "mkdir -p ${CYPRESS_DEST}" -echo "cp -r ${PROCESSED_DIR}/* ${CYPRESS_DEST}" - -# Confirmación final -echo "Flujo completado (pendiente de ejecución real). Valida los comandos antes de proceder." diff --git a/package.json b/package.json index 550a08abf..04b75a0b0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "lint": "eslint --ext .js,.vue ./", "format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", "test:e2e": "cypress open", - "test:e2e:run": "cypress run", "test:e2e:ci": "npm run resetDatabase && cd ../salix-front && cypress run", "test": "echo \"See package.json => scripts for available tests.\" && exit 0", "test:unit": "vitest", @@ -65,4 +64,4 @@ "vite": "^5.1.4", "vitest": "^0.31.1" } -} +} \ No newline at end of file