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

Reports deleted #23

Open
nvsoares opened this issue Feb 24, 2016 · 7 comments
Open

Reports deleted #23

nvsoares opened this issue Feb 24, 2016 · 7 comments

Comments

@nvsoares
Copy link

Hi.
In each run is generated a unique identifier for reports and i intend to keep previous reports. How to make the reports directory not eliminated on each run?

@s10mcow
Copy link

s10mcow commented Feb 29, 2016

+1

@Kenzitron
Copy link
Owner

I think this is something easily included. How would you like to generate those folders? I mean the naming.

Something like:
YYYY-MM-DD_HH:MM:SS ?
Random ID?
Just one per day?

There should be some kind of rotation management?

@s10mcow
Copy link

s10mcow commented Feb 29, 2016

How about by spec name?

On Feb 29, 2016, at 9:25 PM, Kenzitron notifications@github.com wrote:

I think this is something easily included. How would you like to generate those folders? I mean the naming.

Something like:
YYYY-MM-DD_HH:MM:SS ?
Random ID?
Just one per day?

There should be some kind of rotation management?


Reply to this email directly or view it on GitHub #23 (comment).

@s10mcow
Copy link

s10mcow commented Feb 29, 2016

Ideally then once we have multiple folders per spec a way to view the entire report of all the tests would rock!

On Feb 29, 2016, at 9:25 PM, Kenzitron notifications@github.com wrote:

I think this is something easily included. How would you like to generate those folders? I mean the naming.

Something like:
YYYY-MM-DD_HH:MM:SS ?
Random ID?
Just one per day?

There should be some kind of rotation management?


Reply to this email directly or view it on GitHub #23 (comment).

@nvsoares
Copy link
Author

nvsoares commented Mar 1, 2016

as I said, the scope of this question is to just have no way to delete the folder of reports. By default folder would remain as well as files in it, and replaced if existed by the same name. This would be the first step. Each can create a role for the report name is dynamic.

Another issue is to have different folders for each test. It makes sense, but I think it should be another option to explore especially when working with multiCapabilities. But this already goes beyond the scope of this issue, and so I will register another where we can continue this discussion.

Please see if you can, by default, do not delete the folder of reports. When creating new report if already a file with the same name, delete and create new.

@KuchhalAnkit
Copy link

Below code should solve your purpose.

var today = new Date();
   var timeStamp = today.getMonth() + 1 + '-' + today.getDate() + '-' + today.getFullYear() + '-' + 

today.getHours() + 'h-' + today.getMinutes() + 'm-' +today.getSeconds()+'s';

 jasmine.getEnv().addReporter(
            new Jasmine2HtmlReporter({
                savePath: './Reports/testResultsReport '+timeStamp,
                screenshotsFolder: 'screenPrints',
                takeScreenshots: true,
                takeScreenshotsOnlyOnFailures: true,
            })
        ); 

@nvsoares
Copy link
Author

Hello, it was not what I wanted but I changed the approach and achieves something. Thank you.

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