summaryrefslogtreecommitdiff
path: root/Taskfile.yaml
blob: f4588d11d7ec670e5e73fce66cd8c2b85d10b765 (plain)
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
52
53
54
55
56
version: '3'

tasks:
  default:
    cmds:
      - go build -o totalrecall ./cmd/totalrecall
  run:
    cmds:
      - go run ./cmd/totalrecall
  test:
    desc: Run all tests
    cmds:
      - go test ./...
  
  test-verbose:
    desc: Run all tests with verbose output
    cmds:
      - go test -v ./...
  
  test-coverage:
    desc: Run all tests with coverage report
    cmds:
      - go test -cover ./...
  
  test-coverage-html:
    desc: Run all tests and generate HTML coverage report
    cmds:
      - go test -coverprofile=coverage.out ./...
      - go tool cover -html=coverage.out -o coverage.html
      - echo "Coverage report generated at coverage.html"
  
  test-race:
    desc: Run all tests with race detector
    cmds:
      - go test -race ./...
  
  test-short:
    desc: Run only short tests (skip integration tests)
    cmds:
      - go test -short ./...
  
  test-all:
    desc: Run comprehensive test suite with coverage and race detection
    cmds:
      - echo "Running comprehensive test suite..."
      - go test -v -race -cover ./...
  install:
    cmds:
      - go install ./cmd/totalrecall
  
  clean:
    desc: Clean build artifacts and test coverage files
    cmds:
      - rm -f totalrecall
      - rm -f coverage.out coverage.html
      - go clean -testcache