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

Codecov: ReportGenerator #55

Open
Luolc opened this issue Jul 19, 2017 · 4 comments
Open

Codecov: ReportGenerator #55

Luolc opened this issue Jul 19, 2017 · 4 comments

Comments

@Luolc
Copy link
Collaborator

Luolc commented Jul 19, 2017

Taken from #48 (comment)

We need to add test to appease the codecov for class ReportGenerator

@AryanSharma9917
Copy link

@Luolc sir can I work on this issue.
According to me to test the ReportGenerator class, you could create a JUnit test class and add a test method to ensure that the method generate returns the expected report directory when provided with valid inputs.

@romani
Copy link
Member

romani commented Feb 26, 2023

@AryanSharma9917 , please help to fix issue.

@rnveach
Copy link
Member

rnveach commented Feb 26, 2023

I don't know what state CI is in for this repo. You may be blocked by it.

@AryanSharma9917
Copy link

To test the ReportGenerator class, we could create a JUnit test class and add a test method to ensure that the method generates returns the expected report directory when provided with valid inputs
@test
public void testGenerate() throws IOException, InterruptedException {
String testerPath = "/path/to/tester";
String repoPath = "/path/to/repo";
String branch = "my-branch";
File configFile = new File("/path/to/config/file");

    File reportDir = ReportGenerator.generate(testerPath, repoPath, branch, configFile);

    assertTrue(reportDir.exists());
    assertTrue(reportDir.isDirectory());

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

4 participants