Invention Grant
- Patent Title: Unit test case generation with transformers
-
Application No.: US17080843Application Date: 2020-10-27
-
Publication No.: US11893363B2Publication Date: 2024-02-06
- Inventor: Dawn Drain , Neelakantan Sundaresan , Alexey Svyatkovskiy , Michele Tufano
- Applicant: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Applicant Address: US WA Redmond
- Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Current Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Current Assignee Address: US WA Redmond
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F8/35 ; G06F17/18 ; G06N3/084 ; G06N3/088 ; G06N5/046

Abstract:
A unit test generation system employs a neural transformer model with attention to generate candidate unit test sequences given a focal method of a programming language. The neural transformer model is pre-trained with source code programs and natural language text and fine-tuned with mapped test case pairs. A mapped test case pair includes a focal method and a unit test case for the focal method. In this manner, the neural transformer model is trained to learn the semantics and statistical properties of a natural language, the syntax of a programming language and the relationships between the code elements of the programming language and the syntax of a unit test case.
Public/Granted literature
- US20220066747A1 UNIT TEST CASE GENERATION WITH TRANSFORMERS Public/Granted day:2022-03-03
Information query