test-golang-analyzer.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. # Quick test script for Golang analyzer development
  3. # This allows testing without making API calls
  4. echo "🔬 Running Golang Analyzer Tests..."
  5. echo "=================================="
  6. # Run all Golang analyzer tests
  7. cd /home/ray/byop/byop-engine
  8. go test ./analyzer/stacks/golang/ -v
  9. echo ""
  10. echo "📊 Test Summary:"
  11. echo "==============="
  12. # Run specific test cases that validate our fixes
  13. echo "✅ Testing main package detection for web-server structure..."
  14. go test ./analyzer/stacks/golang/ -run TestWebServerProjectStructure -v
  15. echo ""
  16. echo "✅ Testing general main package detection..."
  17. go test ./analyzer/stacks/golang/ -run TestFindMainPackage -v
  18. echo ""
  19. echo "✅ Testing LLB generation..."
  20. go test ./analyzer/stacks/golang/ -run TestGenerateLLB -v
  21. echo ""
  22. echo "🎉 Development testing complete!"
  23. echo ""
  24. echo "💡 To test manually without API calls:"
  25. echo " go test ./analyzer/stacks/golang/ -v"
  26. echo ""
  27. echo "💡 To test specific functionality:"
  28. echo " go test ./analyzer/stacks/golang/ -run TestWebServerProjectStructure -v"