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

tests:run PerformanceAudit fails #12

Closed
dadall opened this issue Aug 12, 2020 · 1 comment · Fixed by #13
Closed

tests:run PerformanceAudit fails #12

dadall opened this issue Aug 12, 2020 · 1 comment · Fixed by #13
Labels
documentation Improvements or additions to documentation

Comments

@dadall
Copy link

dadall commented Aug 12, 2020

I try to test if the plugin works :

1/ Running the Plugin Check

[debug] Debug mode enabled
[info] Performance Audit task for site 1 will be started now
[debug] Mark task as running now
[debug] Mark task for site 1 as started today
[debug] Performing audit for (site ID, URLs, URL count, emulated devices, runs): [1,["https://www.dadall.info/article629/installer-grafana-prometheus-et-node-exporter"],1,["mobile"],[1]]
[info] Performing scheduled audit [1/1] of site 1 (device: mobile) for URL: https://www.dadall.info/article629/installer-grafana-prometheus-et-node-exporter
[debug] Audit file count: 1
[debug] Process Audit files: {"/var/www/html/matomo/plugins/PerformanceAudit/Audits/1-mobile-8bb0898f43b90fbb7bbc5863ffc67c96257ef20b-1.json":{}}
[debug] Audit files processed as: {"1":{"8bb0898f43b90fbb7bbc5863ffc67c96257ef20b":{"mobile":{"firstContentfulPaint":{"0":974},"largestContentfulPaint":{"0":1558},"interactive":{"0":7688},"speedIndex":{"0":2147},"totalBlockingTime":{"0":304},"cumulativeLayoutShift":{"0":0.4890625},"score":{"0":84}}}}}
[debug] Final audit values: {"1":{"8bb0898f43b90fbb7bbc5863ffc67c96257ef20b":{"mobile":{"firstContentfulPaint":[974,974,974],"largestContentfulPaint":[1558,1558,1558],"interactive":[7688,7688,7688],"speedIndex":[2147,2147,2147],"totalBlockingTime":[304,304,304],"cumulativeLayoutShift":[0,0,0],"score":[84,84,84]}}}}
[debug] Action IDs lookup table with URLs: [{"8bb0898f43b90fbb7bbc5863ffc67c96257ef20b":"39927"},["8bb0898f43b90fbb7bbc5863ffc67c96257ef20b"]]
[info] Skipping database storing of results
[debug] Mark task as finished now
[info] Performance Audit task for site 1 has finished 

Is it correct ?

2/ Using the console

  [InvalidArgumentException]                               
  There are no commands defined in the "tests" namespace.

I don't understand :(

@DevDavido DevDavido added the documentation Improvements or additions to documentation label Aug 15, 2020
@DevDavido DevDavido linked a pull request Aug 15, 2020 that will close this issue
@DevDavido
Copy link
Owner

Sorry for the confusion, I improved the wording in the README file now. The console tests are referring to integration/unit tests.

@dadall dadall closed this as completed Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants