Purpose
Through this project, you will demonstrate your understanding of unit level testing, your ability to
utilize appropriate tools, your proficiency in generating effective unit level test cases, and critically
analyzing the effectiveness of using an AI-powered language model in unit level testing.
Objectives
Learners will be able to:
● Apply unit level testing learning to develop tests for an algorithm
● Develop unit level test cases using a generative AI tool and unit testing framework
● Execute the test cases generated and report the performance of unit level test cases
developed and further improve the unit test cases
● Analyze the effectiveness of generative AI tool in performing unit level testing
Technology Requirements
● Generative AI tool (e.g. ChatGPT)
● Unit Testing framework (of choice)
● IDE (of choice)
Project Description
This assignment is focused on deriving test cases for an algorithm using a unit testing framework.
Directions
You are asked to develop test cases using a unit testing framework of your choice, with feedback
from a generative AI tool.
1
Task 1
You are expected to download or write code to implement Heapsort algorithm. You can use Java,
C++, Python, or Javascript language to implement the code.
Task 2
You are expected to:
● research and identify a unit testing framework to test your code created in Task 1.
● research and use a generative AI tool to create unit level test cases using a unit testing
framework.
● Identify and report the prompts used to generate the test cases when interacting with the
generative AI tool and the results generated by the AI tool.
Task 3
You are asked to execute the test cases generated in Task 2 in an IDE of your preference and report
on the output of the test cases with evidence (i.e. screenshots) showing the test execution and test
results.
Task 4
You are asked to assess the validity of the test cases executed and further improve the test cases by
updating them. The test cases developed by the AI tool may not be sufficient to test the code written.
Based on the coverage and performance of the test cases, describe how you can update them and
further improve them.
Task 5
You are expected to make an assessment of the generative AI tool as per your experience in using it
in this assignment. You are asked to assess the effectiveness of generative AI tool in creating test
cases using the unit level testing framework. Your assessment should explain your experience with
the AI tool and discuss its performance in terms of how well they generate the unit level test cases.
Submission Directions for Project Deliverables
This assignment requires submission of one (1) deliverable: You will submit a report in PDF format
including:
CSE 565: Software Verification and Validation 2
Design of Experiments Assignment
1. Development of an algorithm – The report should include a screenshot of the code
developed
2. Explanation of the unit testing framework and prompt generation – The report should
describe the unit testing framework and the generative AI tool identified. It should include
screenshots of the prompts tried and used for creating unit level testing of the code.
3. Explanation of the test cases by AI tool – The report should describe the test cases created
by the generative AI tool, should have the result generated by the AI tool with screenshots of
the results.
4. Report out of test case execution – The report should describe the results of the test
execution of the test cases on a selected IDE. It should include screenshots showing the
execution results.
5. Assessment and further improvement of test cases – The report should include an
assessment of the validity of the test cases and a discussion of how they can be further
improved. It should include screenshots of new test cases developed by the student and
results showing the execution of the updated test cases.
6. An assessment of the generative AI tool – The report should describe the student’s
experience in using the AI tool in this project and should include an assessment of the AI tool’s
performance in terms of how well they generate the unit level test cases using the given unit
test framework.
When ready, title your file as yourlastname_firstname_CSE 565_UnitTestingAssignment and
submit at the assignment submission page. You are expected to submit
● a file in PDF format
Submission Guidelines
You may submit your deliverables as many times as needed. However, only the most recent
submission will be graded.
You must submit your assignment file in the designated submission space. Learners may not email or
use other means to submit any project for review, including feedback, and grading.
Evaluation
Your assignment will be evaluated based on the criteria (worth 100 points total):
1. Development of an algorithm (5 points)
2. Explanation of the unit testing framework and prompt generation (10 points)
3. Explanation of the test cases generated by the AI tool (20 points)
4. Report out of test case execution (20 points)
CSE 565: Software Verification and Validation 3
Design of Experiments Assignment
5. Assessment and further improvement of test cases (25 points)
6. An assessment of the generative AI tool (20 points)
CSE 565: Software Verification and Validation 4
Design of Experiments Assignment
Assignment, solved, Testing, Unit
[SOLVED] Cse 565 unit testing assignment
$25
File Name: Cse_565_unit_testing_assignment.zip
File Size: 292.02 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.