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

Max execution time #120

Merged
merged 2 commits into from
Jan 2, 2023
Merged

Conversation

ccsuperstar
Copy link
Contributor

@ccsuperstar ccsuperstar commented Nov 15, 2022

Related to issue #119

The html reports with Codeception 4 have an execution time format of the form 198.165s
The html reports with Codeception 5 have an execution time format of the form 22:45.165

The regex matches both versions

Added maxSuiteTime support for the final xml report (the execution time of a suite is the longest run time among all parallel runs)
max($this->suiteDuration[$suiteName])

Added maxTime support for the final html report (the total execution time is the longest run time among all parallel runs)
$this->executionTime[] = (string)$matches['timesum'];
$executionTime = max($this->executionTime);

I am looking for feedbacks, I think everything can be improved!

@ccsuperstar ccsuperstar marked this pull request as ready for review November 15, 2022 15:41
@ccsuperstar ccsuperstar force-pushed the maxExecutionTime branch 5 times, most recently from c6371bf to 154a66a Compare November 15, 2022 18:08
@ccsuperstar ccsuperstar marked this pull request as draft November 15, 2022 18:20
@ccsuperstar ccsuperstar force-pushed the maxExecutionTime branch 8 times, most recently from 945b319 to dde8c12 Compare November 16, 2022 06:53
@ccsuperstar ccsuperstar marked this pull request as ready for review November 16, 2022 06:56
@ccsuperstar ccsuperstar force-pushed the maxExecutionTime branch 2 times, most recently from 7b56aa4 to 107e9e7 Compare November 16, 2022 08:57
Copy link
Member

@Arhell Arhell left a comment

Choose a reason for hiding this comment

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

@vansari
Copy link
Collaborator

vansari commented Nov 20, 2022

@ccsuperstar Thank you for your contribution. Please do not forget to write a test for your changes.

@vansari vansari linked an issue Nov 20, 2022 that may be closed by this pull request
@ccsuperstar
Copy link
Contributor Author

@ccsuperstar Thank you for your contribution. Please do not forget to write a test for your changes.

yes I will do it, then I guess I have to do tests for codeception 5 and for the previous versions

@ccsuperstar ccsuperstar force-pushed the maxExecutionTime branch 5 times, most recently from 2dccaaa to bd82ac3 Compare November 21, 2022 11:06
@ccsuperstar ccsuperstar requested review from vansari and Arhell and removed request for Arhell and vansari November 22, 2022 16:31
src/Merger/HtmlReportMerger.php Outdated Show resolved Hide resolved
src/Merger/HtmlReportMerger.php Outdated Show resolved Hide resolved
src/Merger/HtmlReportMerger.php Outdated Show resolved Hide resolved
src/Merger/HtmlReportMerger.php Outdated Show resolved Hide resolved
src/Merger/XmlReportMergerTask.php Outdated Show resolved Hide resolved
src/Merger/HtmlReportMerger.php Outdated Show resolved Hide resolved
@vansari vansari merged commit 2700038 into Codeception:master Jan 2, 2023
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.

Execution time on the merged html report is incorrect (0s)
3 participants