Skip to content
New issue

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

Dev friendly amp improvements and windows support #1004

Conversation

lacinoire
Copy link
Contributor

  • Windows-compatible default values for paths to sources/classes.
  • No longer add junit 4 separately to dependencies (this was creating failures when the path to the project contains a space)
  • Contributing various small improvements that make --dev-friendly amplified test cases clearer to read:
    • Assertions & their arguments are removed completely
    • Comments & consistent naming for NullLiteralAmplifier, JUnit5 Exception-Assertiongenerator, MethodCallRemover

This required to change the test cases including CommentTest#testAmplifierComments, hopefully making it no longer flaky.
The amplification is still non-deterministic, though the test now only checks for presence of the comment, not the exact change that was made in the test.

@lacinoire
Copy link
Contributor Author

Might address #1001

@danglotb danglotb self-assigned this Nov 2, 2021
.getFile() +
AmplificationHelper.PATH_SEPARATOR + dependencies;
}
// if (!dependencies.contains("junit" + File.separator + "junit" + File.separator + "4")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this code is no longer useful, please remove it completely

@danglotb
Copy link
Member

danglotb commented Nov 5, 2021

Hi @lacinoire
thank you very much for your contributions! It is great 😄
Could you address my comment? I'll merge afterward.

@lacinoire
Copy link
Contributor Author

Hey @danglotb,
Thank you for the review 😊
Good point! I removed the commented out code now 🙂

@codecov-commenter
Copy link

Codecov Report

Merging #1004 (9352e54) into master (d07b4b2) will increase coverage by 0.17%.
The diff coverage is 80.85%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1004      +/-   ##
============================================
+ Coverage     72.73%   72.91%   +0.17%     
- Complexity     1482     1486       +4     
============================================
  Files           134      134              
  Lines          6359     6364       +5     
  Branches        757      757              
============================================
+ Hits           4625     4640      +15     
+ Misses         1395     1386       -9     
+ Partials        339      338       -1     
Impacted Files Coverage Δ
...ct/dspot/common/configuration/InitializeDSpot.java 87.38% <ø> (+4.48%) ⬆️
..._project/dspot/common/configuration/UserInput.java 67.75% <ø> (ø)
...project/dspot/common/miscellaneous/DSpotUtils.java 71.81% <61.53%> (-0.25%) ⬇️
...generator/assertiongenerator/AssertionRemover.java 90.00% <84.00%> (+1.84%) ⬆️
.../dspot/amplifier/amplifiers/AbstractAmplifier.java 90.62% <100.00%> (+0.96%) ⬆️
...ot/amplifier/amplifiers/TestMethodCallRemover.java 57.69% <100.00%> (+1.69%) ⬆️
...t/dspot/assertiongenerator/AssertionGenerator.java 95.45% <100.00%> (-0.06%) ⬇️
...framework/implementations/junit/JUnit5Support.java 100.00% <100.00%> (ø)
...test_framework/AbstractTestFrameworkDecorator.java 28.57% <0.00%> (-21.43%) ⬇️
...erator/assertiongenerator/MethodReconstructor.java 85.83% <0.00%> (-5.00%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d07b4b2...9352e54. Read the comment docs.

@danglotb danglotb merged commit 16bb716 into STAMP-project:master Nov 5, 2021
@lacinoire lacinoire deleted the dev-friendly-amp-improvements-and-windows-support branch November 5, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants