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

Implemented LineRange-class and improved overall code-coverage #30

Conversation

hm-jtreichel
Copy link
Contributor

@hm-jtreichel hm-jtreichel commented Sep 16, 2023

As requested, these are tests and implementations from some of the exercises during the testing-lecture (summer-semester 2023, University of Applied Sciences Munich):

A LineRange-class was implemented for grouping coverage-information for consecutive lines-of-code.
Various new tests improve overall line-, branch- and mutation-coverage for the project.

Testing done

All tests (old and new) run successfully on my local system (based on current state of the main-branch in the official coverage-model-repository).

Submitter checklist

*
* @author Jannik Treichel
*/
class CoverageParserTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: CoverageParserTest is not referenced within this codebase. If not used as an external API it should be removed.

import static edu.hm.hafner.coverage.assertions.Assertions.*;

class MutationStatusTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: MutationStatusTest is not referenced within this codebase. If not used as an external API it should be removed.
* These might also be tested by adding additional asserts
* in the tests for the {@link Node} class --> {@link NodeTest}.
*/
class MutationTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: MutationTest is not referenced within this codebase. If not used as an external API it should be removed.
@hm-jtreichel hm-jtreichel marked this pull request as ready for review September 16, 2023 16:09
@uhafner
Copy link
Member

uhafner commented Sep 21, 2023

Thanks!

@uhafner uhafner added the tests Enhancement of tests label Sep 21, 2023
@uhafner uhafner merged commit f486e55 into jenkinsci:main Sep 28, 2023
13 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Enhancement of tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants