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

Fix argument list too long #260

Merged
merged 5 commits into from
Jun 6, 2018
Merged

Fix argument list too long #260

merged 5 commits into from
Jun 6, 2018

Conversation

sarod
Copy link
Member

@sarod sarod commented May 31, 2018

Fixes #161 #161

@codecov
Copy link

codecov bot commented May 31, 2018

Codecov Report

Merging #260 into master will increase coverage by 0.01%.
The diff coverage is 79.77%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #260      +/-   ##
============================================
+ Coverage     73.07%   73.09%   +0.01%     
+ Complexity     1224     1217       -7     
============================================
  Files           182      181       -1     
  Lines          3997     4033      +36     
  Branches        298      300       +2     
============================================
+ Hits           2921     2948      +27     
- Misses          980      990      +10     
+ Partials         96       95       -1
Impacted Files Coverage Δ Complexity Δ
.../org/infinitest/eclipse/workspace/CoreFactory.java 80% <ø> (ø) 2 <0> (ø) ⬇️
...ain/java/org/infinitest/InfinitestCoreBuilder.java 86.66% <ø> (ø) 7 <0> (ø) ⬇️
...ain/java/org/infinitest/parser/ClassFileIndex.java 97.18% <ø> (ø) 31 <0> (ø) ⬇️
.../org/infinitest/testrunner/MultiProcessRunner.java 92.85% <ø> (ø) 4 <0> (ø) ⬇️
...initest/intellij/idea/IdeaCompilationListener.java 56.52% <ø> (ø) 6 <0> (ø) ⬇️
...a/org/infinitest/parser/ClassFileTestDetector.java 97.36% <ø> (ø) 20 <0> (ø) ⬇️
...rg/infinitest/changedetect/FileChangeDetector.java 91.89% <ø> (ø) 20 <0> (ø) ⬇️
...ain/java/org/infinitest/DefaultInfinitestCore.java 93.81% <ø> (ø) 33 <0> (ø) ⬇️
.../org/infinitest/testrunner/AbstractTestRunner.java 72.22% <ø> (ø) 13 <0> (ø) ⬇️
...itest/environment/FileCustomJvmArgumentReader.java 87.5% <ø> (ø) 6 <0> (?)
... and 14 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 25ce2ea...849ce72. Read the comment docs.

@sarod sarod force-pushed the fix-argument-list-too-long branch from 7bfaa2a to 1ee80aa Compare May 31, 2018 06:55
move environement to dedicated package
Reorganize environement related tests
@sarod sarod force-pushed the fix-argument-list-too-long branch 2 times, most recently from 20c57f3 to 1787aa7 Compare May 31, 2018 19:15
@sarod sarod force-pushed the fix-argument-list-too-long branch from 1787aa7 to 6d37712 Compare June 6, 2018 20:30
@sarod sarod merged commit dc6bec8 into master Jun 6, 2018
@sarod sarod deleted the fix-argument-list-too-long branch June 9, 2018 20:25
gtoison added a commit to erroraway/infinitest that referenced this pull request Aug 14, 2022
mockito-inline relies on instrumentation to mock static methods, this
does not seem to be possible when the classloader is overridden because
it does not implement the required methods
Pull request infinitest#260 was introduced to solve the problem when the classpath
is too big to fit in the shell environment.
Since Java 9 it is possible to use argument file expanded by the java
process, use this native feature instead of a custom classloader

Introduced ClasspathArgumentBuilder to the pre Java 9 case (use standard
arguments) and post Java 9 (use an argument file)
gtoison added a commit that referenced this pull request Sep 24, 2022
fix: replacing the system classloader prevents instrumentation

mockito-inline relies on instrumentation to mock static methods, this
does not seem to be possible when the classloader is overridden because
it does not implement the required methods
Pull request #260 was introduced to solve the problem when the classpath
is too big to fit in the shell environment.
Since Java 9 it is possible to use argument file expanded by the java
process, use this native feature instead of a custom classloader

Introduced ClasspathArgumentBuilder to the pre Java 9 case (use standard
arguments) and post Java 9 (use an argument file)
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.

None yet

1 participant