Comments (8)
When I say all test cases pass... no errors and no failures.
Original comment by [email protected]
on 21 Oct 2014 at 4:46
from randoop.
Can you provide concrete steps to reproduce the error?
You have given only vague descriptions, so I am not sure exactly what you are
doing. If the developers cannot reproduce your exact problem, then they cannot
correct it.
Original comment by [email protected]
on 22 Oct 2014 at 7:27
from randoop.
There is an issue over at JUnit for this as well:
https://github.com/junit-team/junit/issues/1003#issuecomment-59958853
So far, we haven't been able to reproduce the problem, either.
Original comment by [email protected]
on 22 Oct 2014 at 5:42
from randoop.
Yes, that is the issue I started over there... so everyone is investigating the
same issue.
So I downloaded the project:
https://github.com/mattm401/DnD-AttributeGen
Ran Randoop on it using the default options. I open one of the tests and change
the string text in a var1.equals("Warlord") [Assert True] and change it to
"Warlord1" which will always return false.
When I re-run the JUnit test suite, the suite reports 2 errors instead of 1 and
I am trying to understand why this is happening.
Original comment by [email protected]
on 22 Oct 2014 at 5:47
from randoop.
Can you give exact commands that can be pasted into a command shell?
This should include exactly how Randoop is run, exactly which test is changed,
exactly how JUnit is run, and any other necessary details.
This will take you only a moment, but can save significant guessing and wasted
time for the developers.
(For example, there is no indication in this bug report that you are running
JUnit from Eclipse. If you cannot reproduce the problem from the command line,
then Eclipse or its plugins are more likely to be at fault.)
If you can give other help such as minimizing the test suite, that would be
extremely helpful too.
For example, it can help to indicate whether the problem is with Randoop or
JUnit or something else.
Original comment by [email protected]
on 23 Oct 2014 at 12:43
from randoop.
1) Download the project https://github.com/mattm401/DnD-AttributeGen and
install it in eclipse ( I use ADT Build: v22.0.0-675183) with JUnit 4.11 and
the Randoop Plugin installed.
2) Run Randoop Test Input on SRC.
3) Results: 27438 Tests Generated; 0 Failures.
4) Open TEST > Open RANDOOP > Open RANDOOPTEST10 > TEST1()
5) Change:
assertTrue("'" + var2 + "' != '" + "Bard"+ "'", var2.equals("Bard"));
to
assertTrue("'" + var2 + "' != '" + "Bard"+ "'", var2.equals("Bard1"));
6) Run RANDOOPTEST10 as JUnit Test Case (Use configuration specific settings:
Eclipse JUnit Launcher)
7) Result: 1 Failure (As expected)
8) Go back up to root TEST or RANDOOP an [happens with both] d run as JUnit
Test Case (Use configuration specific settings: Eclipse JUnit Launcher)
9) Result: 2 Failures
... so my question is, why is this happening? Shouldn't I only see 1 Failure?
Why is the test case getting run twice?
Original comment by [email protected]
on 23 Oct 2014 at 3:31
from randoop.
Regarding step 5) "Bard" may be "Warlock" or something else; line 27
approximately.
Original comment by [email protected]
on 23 Oct 2014 at 3:32
from randoop.
I asked for a way to reproduce the problem using the command line. The purpose
was to help understand whether the problem is in Randoop, in JUnit, or in
Eclipse. (The latter seems most likely to me, but of course we don't know for
sure and I don't have the time to debug Eclipse.)
I'm closing the issue since the person who reported the bug has not provided
this information. I'm happy to reopen it if a proper bug report is filed.
Original comment by [email protected]
on 26 Oct 2014 at 10:15
- Changed state: Invalid
from randoop.
Related Issues (20)
- Generate specific method sequence HOT 1
- Randoop release (zip archive) broken
- No (or very little) test generated for some Apache projects
- java.lang.NoClassDefFoundError: javax/json/JsonStructure HOT 5
- Facing problem to generate unit-tests using jar file of a project in randoop.
- I am facing issue while generating unit tests for a package of a project
- Running Randoop in the IntelliJ debugger fails with java.lang.IllegalArgumentException: Path component should be '/' HOT 2
- I am facing an issue while writing test cases to a file HOT 1
- Randoop cannot write test cases HOT 3
- Randoop creates false-positives in errors on basic types/Object casts
- Randoop fails with a runtime exception when generating tests for spring HOT 1
- Use `Assert.assertArrayEquals` to compare for array equality instead of comparing String representation HOT 1
- Test case generation for Map HOT 1
- Randoop availability in maven central HOT 3
- Randoop is generating tests with null input for non premitive data types of my class even though --forbid-null=true is passed HOT 1
- Randoop generates uncompilable sequences because "reference to assertEquals is ambiguous"
- Can't generate testcases for all classes inside Springboot
- No test HOT 2
- Cannot provide post-condition specification to void methods
- Support for a version of java greater than 11 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from randoop.