From 67f3c43995b1634746b3c5e9d4a9cf16264b4e34 Mon Sep 17 00:00:00 2001 From: Ricardo Sanz Date: Thu, 25 Jan 2024 21:14:27 +0100 Subject: [PATCH] Tests for pa11y (accesibility) and lighthouse (performance) --- .../shellspec/shellspec_spec/lighthouse___spec.sh | 13 +++++++++++++ .github/shellspec/shellspec_spec/pa11y___spec.sh | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/shellspec/shellspec_spec/lighthouse___spec.sh create mode 100644 .github/shellspec/shellspec_spec/pa11y___spec.sh diff --git a/.github/shellspec/shellspec_spec/lighthouse___spec.sh b/.github/shellspec/shellspec_spec/lighthouse___spec.sh new file mode 100644 index 0000000..b5b5ebf --- /dev/null +++ b/.github/shellspec/shellspec_spec/lighthouse___spec.sh @@ -0,0 +1,13 @@ +Describe 'Lighthouse' lighthouse + + It 'is installed and can be run' + When run command make lighthouse + The status should be success + The output should include "Healthcheck passed!" + The output should include "Done running Lighthouse!" + The path 'reports/lighthouse/_.report.html' should be file + The path 'reports/lighthouse/_.report.json' should be file + The path 'reports/lighthouse/manifest.json' should be file + End + +End diff --git a/.github/shellspec/shellspec_spec/pa11y___spec.sh b/.github/shellspec/shellspec_spec/pa11y___spec.sh new file mode 100644 index 0000000..66d8bc4 --- /dev/null +++ b/.github/shellspec/shellspec_spec/pa11y___spec.sh @@ -0,0 +1,10 @@ +Describe 'Pa11y' accessibility + + It 'is installed and can be run' + When run command make pa11y http://apache + The status should be success + The output should include "Welcome to Pa11y" + The output should include "No issues found!" + End + +End