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

Restore Code coverage - including webSocket and StaandardIO tests #313

Open
apupier opened this issue Oct 2, 2019 · 3 comments
Open

Restore Code coverage - including webSocket and StaandardIO tests #313

apupier opened this issue Oct 2, 2019 · 3 comments

Comments

@apupier
Copy link
Member

apupier commented Oct 2, 2019

due to an upgrade in SonarCloud, we lost the code coverage. We need to find how to reenable it.

@apupier
Copy link
Member Author

apupier commented Nov 14, 2019

seems not due to Sonar upgrade but to the added tests on the Runner main class for WebSocket and StandardIo.

If i disable them I have coverage reported locally.

apupier added a commit to apupier/camel-language-server that referenced this issue Nov 15, 2019
apupier added a commit to apupier/camel-language-server that referenced this issue Nov 15, 2019
- add back Jacoco configuration
- now Sonar requires the xml report to be generated, it means that we
need to launch verify phase instead of test
- excluding 2 tests from coverage, they are playing and it is causing
Jacoco to not report any coverage 90% of the time. This look alike a bug
in Jacoco, will need to qualify and report it.

So this PR is adding back coverage of the 232 tests over the 238
existing. This is not yet perfect but better than 0.

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit that referenced this issue Nov 15, 2019
Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit that referenced this issue Nov 15, 2019
- add back Jacoco configuration
- now Sonar requires the xml report to be generated, it means that we
need to launch verify phase instead of test
- excluding 2 tests from coverage, they are playing and it is causing
Jacoco to not report any coverage 90% of the time. This look alike a bug
in Jacoco, will need to qualify and report it.

So this PR is adding back coverage of the 232 tests over the 238
existing. This is not yet perfect but better than 0.

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit to apupier/camel-language-server that referenced this issue Nov 15, 2019
forgot to remove some modifications done during investigations

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit to apupier/camel-language-server that referenced this issue Nov 15, 2019
forgot to remove some modifications done during investigations

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit to apupier/camel-language-server that referenced this issue Nov 15, 2019
forgot to remove some modifications done during investigations

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit that referenced this issue Nov 15, 2019
forgot to remove some modifications done during investigations

Signed-off-by: Aurélien Pupier <[email protected]>
@apupier apupier removed their assignment Jan 8, 2020
@apupier
Copy link
Member Author

apupier commented Jul 1, 2020

coverage is currently reported without tests on the Runner main class for WebSocket and StandardIo

@apupier apupier changed the title restore Code coverage Restore Code coverage - including webSocket and StaandardIO tests Jul 1, 2020
@apupier
Copy link
Member Author

apupier commented May 20, 2021

wondering if it wasn't caused by some Thread that were leftover:
#605

apupier added a commit to apupier/camel-language-server that referenced this issue May 20, 2021
remaining threads could cause problem

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit to apupier/camel-language-server that referenced this issue Jun 18, 2021
remaining threads could cause problem

Signed-off-by: Aurélien Pupier <[email protected]>
apupier added a commit to apupier/camel-language-server that referenced this issue Jun 18, 2021
ensure threads are finished when test is finished as remaining threads
could cause problem

Signed-off-by: Aurélien Pupier <[email protected]>
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

No branches or pull requests

1 participant