DevDavido / performance-audit-plugin

Daily performance audits of all your sites in Matomo.
GNU General Public License v3.0
12 stars 4 forks source link

tests:run PerformanceAudit fails #12

Closed dadall closed 4 years ago

dadall commented 4 years ago

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 commented 4 years ago

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