We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
Static field value possible changes is not considered
To Reproduce
utbot
DoubleStreamExample
testPeekExampleReturnsZero
peekExample
Expected behavior
Tests should pass when run separately or altogether.
Actual behavior
testPeekExampleReturnsZero passes when run standalone and fails when run in test class.
Screenshots, logs
///region Test suites for executable org.utbot.examples.stream.DoubleStreamExample.peekExample ///region FUZZER: SUCCESSFUL EXECUTIONS for method peekExample(java.util.List) /** * @utbot.classUnderTest {@link DoubleStreamExample} * @utbot.methodUnderTest {@link DoubleStreamExample#peekExample(java.util.List)} */ @Test @DisplayName("peekExample: list = collection -> return 0") public void testPeekExampleReturnsZero() { DoubleStreamExample doubleStreamExample = new DoubleStreamExample(); LinkedList list = new LinkedList(); list.add(Short.MIN_VALUE); list.add((short) -1); list.add(Short.MAX_VALUE); int actual = doubleStreamExample.peekExample(list); assertEquals(0, actual); } ///endregion ///endregion
Environment
IntelliJ IDEA version - Ultimate 2023.2 Project - Gradle JDK - 17
Additional context
peekExample returns static field beforeStaticValue value that is changed by another test
beforeStaticValue
The text was updated successfully, but these errors were encountered:
Markoutte
No branches or pull requests
Description
Static field value possible changes is not considered
To Reproduce
utbot
projectDoubleStreamExample
with default settingstestPeekExampleReturnsZero
generated by Fuzzing forpeekExample
Expected behavior
Tests should pass when run separately or altogether.
Actual behavior
testPeekExampleReturnsZero
passes when run standalone and fails when run in test class.Screenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2
Project - Gradle
JDK - 17
Additional context
peekExample
returns static fieldbeforeStaticValue
value that is changed by another testThe text was updated successfully, but these errors were encountered: