Skip to content

Added Automated API Test Suite#1640

Merged
omroy07 merged 1 commit intoomroy07:mainfrom
trivedikavya:iss-1
Feb 23, 2026
Merged

Added Automated API Test Suite#1640
omroy07 merged 1 commit intoomroy07:mainfrom
trivedikavya:iss-1

Conversation

@trivedikavya
Copy link
Copy Markdown
Contributor

@trivedikavya trivedikavya commented Feb 23, 2026

This Pr is related to #1442 in This PR introduces a comprehensive automated test suite (test_all_endpoints.py) for the AgriTech backend. It allows developers to quickly verify that all ML models and API endpoints are functioning correctly after changes.

Key Features

  • Module Coverage: Includes tests for Crop Recommendation, Yield Prediction, Fertilizer Suggestion, and Disease Detection.
  • Robust Error Handling: Added tests for edge cases like missing JSON fields and empty file uploads.
  • Performance & Quality: Integrated checks for response latency (threshold < 5s) and valid JSON formatting.
  • Batch Testing: Added a utility to run multiple predictions from a sample_crop_input.json file to check model accuracy over time.
  • Custom Test Runner: Provides a clean, formatted terminal output with a final summary of PASS/FAIL/SKIP statuses.

Add a comprehensive test suite for AgriTech API endpoints, including tests for crop recommendations, yield predictions, fertilizer recommendations, disease detection, and response quality.
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 23, 2026

@trivedikavya is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@omroy07 omroy07 merged commit a308897 into omroy07:main Feb 23, 2026
2 of 5 checks passed
@github-actions
Copy link
Copy Markdown

🎉 Congrats @trivedikavya on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

SatyamPandey-07 added a commit to SatyamPandey-07/AgriTech that referenced this pull request Feb 25, 2026
SatyamPandey-07 added a commit to SatyamPandey-07/AgriTech that referenced this pull request Feb 25, 2026
omroy07 added a commit that referenced this pull request Feb 28, 2026
…ation-1640

feat: Precision Irrigation System #1640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants