๐งชTDD Challengeยทbeginnerยทโฑ๏ธ 25โ40mยทโญ 125 XP
M-062Build a Test Dataset Generator
Description
Nebula Corp needs to systematically test their AI chatbot but creating test cases manually is slow. Build a test dataset generator that takes a set of documents and automatically generates question-answer pairs for evaluation. The generator should create questions at different difficulty levels, pair them with expected answers from the source documents, and output a structured test dataset.
Test Cases (3)
Extracts facts from document
Should extract multiple facts from a document
Input:testExtractFacts()
Expected:CONTAINS:fact
Generates dataset with metadata
Should generate multiple test cases
Input:testGenerateDataset()
Expected:CONTAINS:totalCases
Dataset passes validation
Generated dataset should be valid
Input:testValidateDataset()
Expected:CONTAINS:true
Related Lessons
Click Run / Check to validate your solution