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: unit test configuration handles deferred var @{x} from surefire/failsafe #1827

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

treilhes
Copy link
Contributor

@treilhes treilhes commented Sep 9, 2024

solves #1824

Copy link

github-actions bot commented Sep 9, 2024

Test Results

0 files   -   324  0 suites   - 324   0s ⏱️ - 28m 0s
0 tests  -   673  0 ✅  -   652  0 💤  - 18  0 ❌  - 2 
0 runs   - 2 019  0 ✅  - 1 961  0 💤  - 54  0 ❌  - 3 

Results for commit 894ebef. ± Comparison against base commit fc65987.

ILaunchConfiguration config = updatedConfigurations[0];
String argLine = config.getAttribute(UnitTestSupport.LAUNCH_CONFIG_VM_ARGUMENTS, "");
assertTrue(argLine.contains("-javaagent")); // resolved jacoco agent
assertTrue(argLine.contains("@{titi.tata}")); // unresolved property, maybe removing the placeholder would be
Copy link

Choose a reason for hiding this comment

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

I'd say yes - removing it would probably be better ;)

Although I believe that in a CLI build, it would also not be resolved and stay as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hesitated but in the end I preferred a quick failure in the case of an undefined variable than spending time looking for where the problem comes from

@HannesWell, @laeubi, @akurtakov what are your thought on this ?

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.

2 participants