-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bugstatus-verifiedBug fix is verifiedBug fix is verified
Milestone
Description
Description
To Reproduce
public int[] arrayCopy() {
int[] fst = {1, 2, 3};
int[] snd = {4, 5, 6};
System.arraycopy(fst, 0, snd, 0, 3);
return snd;
}
Steps to reproduce the behavior:
- Open
algorithms/Sort.java
sample from UTBot project - Or use code sample from above.
- In plugin settings set generation method to 95% Symbolic
- Use plugin to generate tests
- Open the generated test
Expected behavior
Every test is placed in region with name and has proper java doc description
Actual behavior
Quite many regions have no names and some tests have no javadocs
Visual proofs (screenshots, logs, images)
Here is one of generated test:
public class SortTest {
///region Test suites for executable org.example.Sort.arrayCopy
///region
@Test
public void testArrayCopy1() {
Sort sort = new Sort();
int[] actual = sort.arrayCopy();
int[] expected = {1, 2, 3};
assertArrayEquals(expected, actual);
}
...
Metadata
Metadata
Assignees
Labels
comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bugstatus-verifiedBug fix is verifiedBug fix is verified
Type
Projects
Status
Done