-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1.44 KB
/
Makefile
File metadata and controls
49 lines (38 loc) · 1.44 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
# Dataset Processing Test Commands
.PHONY: test test-core test-all test-coverage help
# Python command (uses virtual env if available, otherwise system python)
PYTHON_CMD = $(shell if [ -d "env" ]; then echo "source env/bin/activate &&"; fi) python
# Activate virtual environment and run core tests
test-core:
@echo "Running core module tests..."
$(PYTHON_CMD) -m unittest tests.test_utils tests.test_event_registry tests.test_lookup tests.test_manifest tests.test_keys -v
# Run all tests
test-all:
@echo "Running all tests..."
$(PYTHON_CMD) -m unittest discover tests -v
# Run specific test module
test-utils:
$(PYTHON_CMD) -m unittest tests.test_utils -v
test-lookup:
$(PYTHON_CMD) -m unittest tests.test_lookup -v
test-datashop:
$(PYTHON_CMD) -m unittest tests.test_datashop -v
# Default test command
test: test-core
# Setup development environment
setup:
python -m venv env
source env/bin/activate && pip install -r requirements.txt
# Clean up
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
help:
@echo "Available commands:"
@echo " make test - Run core module tests (default)"
@echo " make test-core - Run core module tests"
@echo " make test-all - Run all tests"
@echo " make test-utils - Run utils tests only"
@echo " make setup - Setup development environment"
@echo " make clean - Clean Python cache files"
@echo " make help - Show this help message"