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

Internal: Optimize test suite #1950

Open
caendesilva opened this issue Sep 3, 2024 · 0 comments
Open

Internal: Optimize test suite #1950

caendesilva opened this issue Sep 3, 2024 · 0 comments

Comments

@caendesilva
Copy link
Member

Baseline

Base test time on WSL2 Ubuntu on my Workstation on a Linux filesystem is just under 20 seconds

Profiling

Run 1

Top 10 slowest tests:
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type wit 0.11s
Hyde\Framework\Testing\Feature\HydeServiceProviderTest > provider is constructed                               0.11s
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type tha 0.07s
Hyde\Testing\Hyde\HydeCLITest > can show hyde console                                                          0.07s
Hyde\Framework\Testing\Feature\YamlConfigurationFeatureTest > hyde namespace can be empty                      0.07s
Hyde\Framework\Testing\Feature\Support\ProjectFileTest > can construct                                         0.06s
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type tha 0.05s
Hyde\Framework\Testing\Feature\YamlConfigurationFeatureTest > setting site name sets rss feed site name when u 0.05s
Hyde\Framework\Testing\Feature\GlobalMetadataBagTest > site metadata adds config defined metadata              0.05s
Hyde\Framework\Testing\Feature\YamlConfigurationFeatureTest > can define multiple config settings in hyde yml  0.05s
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                            (3.81% of 18.42s) 0.70s

Run 2

Top 10 slowest tests:
Hyde\Testing\Hyde\HydeCLITest > can show hyde console                                                          0.11s
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type wit 0.11s
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type tha 0.08s
Hyde\Framework\Testing\Feature\HydeServiceProviderTest > provider is constructed                               0.07s
Hyde\Publications\Testing\Feature\PublicationFieldDefinitionTest > can instantiate class                       0.07s
Hyde\Framework\Testing\Unit\BuildOutputDirectoryCanBeChangedTest > site output directory can be changed for si 0.06s
Hyde\Publications\Testing\Feature\MakePublicationCommandTest > media input selects the right file              0.06s
Hyde\Framework\Testing\Unit\RelativeLinksAcrossPagesRetainsIntegrityTest > relative links across pages retains 0.06s
Hyde\Framework\Testing\Feature\HydePageTest > show in navigation returns false for markdown post               0.05s
Hyde\Framework\Testing\Feature\Support\ProjectFileTest > can construct                                         0.05s
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                            (4.07% of 17.53s) 0.71s

Run 3

Top 10 slowest tests:
Hyde\Framework\Testing\Feature\HydeServiceProviderTest > provider is constructed                               0.11s
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type wit 0.09s
Hyde\Testing\Hyde\HydeCLITest > can show hyde console                                                          0.09s
Hyde\Framework\Testing\Unit\RelativeLinksAcrossPagesRetainsIntegrityTest > relative links across pages retains 0.06s
Hyde\Framework\Testing\Feature\HydePageTest > base source directory                                            0.06s
Hyde\Framework\Testing\Feature\PaginatorTest > next number returns the next page number when there is one      0.06s
Hyde\Framework\Testing\Feature\YamlConfigurationFeatureTest > can define hyde config settings in hyde yml file 0.06s
Hyde\Publications\Testing\Feature\MakePublicationCommandTest > command with boolean input                      0.06s
Hyde\Framework\Testing\Feature\Foundation\FilesystemTest > get base path returns kernels base path             0.06s
Hyde\Publications\Testing\Feature\StaticSiteBuilderPublicationModuleTest > compiling with publication type tha 0.05s
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                            (3.84% of 18.79s) 0.72s
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