-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 1.91 KB
/
Copy pathMakefile
File metadata and controls
51 lines (42 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Variables de configuración
WP_TEST__DIR := ../../wp-tests
TEST_UNIT := ${WP_TEST__DIR}/vendor/bin/phpunit
TESTS_DIR := tests
# Colores para output
GREEN := \033[0;32m
YELLOW := \033[1;33m
NC := \033[0m # No Color
.PHONY: test test-calculate-dv test-invoice test-client test-survey test-all help
# Ayuda
help:
@echo "$(YELLOW)Comandos disponibles:$(NC)"
@echo " $(GREEN)make test$(NC) - Ejecutar todos los tests"
@echo " $(GREEN)make test-calculate-dv$(NC) - Tests de calculate_dv"
@echo " $(GREEN)make test-invoice$(NC) - Tests de Invoice Generation"
@echo " $(GREEN)make test-client$(NC) - Tests de Client Management"
@echo " $(GREEN)make test-survey$(NC) - Tests de Premium Survey"
@echo " $(GREEN)make test-all$(NC) - Todos los tests con detalles"
# Ejecutar todos los tests
test:
@echo "$(YELLOW)Ejecutando todos los tests...$(NC)"
WP_TEST__DIR=${WP_TEST__DIR} ${TEST_UNIT} --testdox --colors=always
# Tests de calculate_dv
test-calculate-dv:
@echo "$(YELLOW)Ejecutando tests de calculate_dv...$(NC)"
WP_TEST__DIR=${WP_TEST__DIR} ${TEST_UNIT} --filter Test_Integration_Alegra_WC --testdox --colors=always
# Tests de Invoice Generation
test-invoice:
@echo "$(YELLOW)Ejecutando tests de Invoice Generation...$(NC)"
WP_TEST__DIR=${WP_TEST__DIR} ${TEST_UNIT} --filter Test_Invoice_Generation --testdox --colors=always
# Tests de Client Management
test-client:
@echo "$(YELLOW)Ejecutando tests de Client Management...$(NC)"
WP_TEST__DIR=${WP_TEST__DIR} ${TEST_UNIT} --filter Test_Client_Management --testdox --colors=always
# Tests de Premium Survey
test-survey:
@echo "$(YELLOW)Ejecutando tests de Premium Survey...$(NC)"
WP_TEST__DIR=${WP_TEST__DIR} ${TEST_UNIT} --filter Test_Premium_Survey --testdox --colors=always
# Todos los tests con detalles
test-all:
@echo "$(YELLOW)Ejecutando todos los tests con detalles...$(NC)"
WP_TEST__DIR=${WP_TEST__DIR} ${TEST_UNIT} --colors=always