automatically look for verifiable examples in all exposed modules

This commit is contained in:
Brian Hicks 2020-03-31 14:58:20 -05:00
parent 00bb332621
commit 4094b97830
3 changed files with 69 additions and 2 deletions

View File

@ -2,13 +2,16 @@ SHELL:=env PATH=${PATH} /bin/sh
export DEPRECATED_MODULES=Html,Accessibility,Accessibility.Aria,Accessibility.Key,Accessibility.Landmark,Accessibility.Live,Accessibility.Role,Accessibility.Style,Accessibility.Widget export DEPRECATED_MODULES=Html,Accessibility,Accessibility.Aria,Accessibility.Key,Accessibility.Landmark,Accessibility.Live,Accessibility.Role,Accessibility.Style,Accessibility.Widget
.PHONY: test .PHONY: test
test: node_modules test: node_modules tests/elm-verify-examples.json
npx elm-test npx elm-test
npx elm-verify-examples --run-tests npx elm-verify-examples --run-tests
make axe-report make axe-report
make percy-tests make percy-tests
make deprecated-imports-report make deprecated-imports-report
tests/elm-verify-examples.json: $(shell find src -name '*.elm') elm.json
jq --indent 4 '{ root: "../src", tests: .["exposed-modules"] }' elm.json > $@
tests/axe-report.json: public script/run-axe.sh script/axe-puppeteer.js tests/axe-report.json: public script/run-axe.sh script/axe-puppeteer.js
script/run-axe.sh > $@ script/run-axe.sh > $@

View File

@ -11,6 +11,7 @@ stdenv.mkDerivation {
git git
gnumake gnumake
niv.niv niv.niv
jq
# node dependencies # node dependencies
nodejs nodejs

View File

@ -1,6 +1,69 @@
{ {
"root": "../src", "root": "../src",
"tests": [ "tests": [
"Nri.Ui.Modal.V6" "Nri.Ui",
"Nri.Ui.Accordion.V1",
"Nri.Ui.Alert.V4",
"Nri.Ui.AssetPath",
"Nri.Ui.AssignmentIcon.V1",
"Nri.Ui.BannerAlert.V6",
"Nri.Ui.Button.V5",
"Nri.Ui.Button.V8",
"Nri.Ui.Button.V10",
"Nri.Ui.Callout.V1",
"Nri.Ui.Checkbox.V3",
"Nri.Ui.Checkbox.V4",
"Nri.Ui.Checkbox.V5",
"Nri.Ui.ClickableText.V3",
"Nri.Ui.ClickableSvg.V1",
"Nri.Ui.Colors.Extra",
"Nri.Ui.Colors.V1",
"Nri.Ui.CssVendorPrefix.V1",
"Nri.Ui.DisclosureIndicator.V1",
"Nri.Ui.DisclosureIndicator.V2",
"Nri.Ui.Divider.V2",
"Nri.Ui.Dropdown.V2",
"Nri.Ui.Effects.V1",
"Nri.Ui.Fonts.V1",
"Nri.Ui.Heading.V2",
"Nri.Ui.Html.Attributes.V2",
"Nri.Ui.Html.V3",
"Nri.Ui.Icon.V3",
"Nri.Ui.Icon.V4",
"Nri.Ui.Icon.V5",
"Nri.Ui.InputStyles.V2",
"Nri.Ui.Logo.V1",
"Nri.Ui.MasteryIcon.V1",
"Nri.Ui.Modal.V8",
"Nri.Ui.Page.V3",
"Nri.Ui.Palette.V1",
"Nri.Ui.Pennant.V2",
"Nri.Ui.PremiumCheckbox.V1",
"Nri.Ui.PremiumCheckbox.V2",
"Nri.Ui.PremiumCheckbox.V3",
"Nri.Ui.PremiumCheckbox.V6",
"Nri.Ui.SegmentedControl.V7",
"Nri.Ui.SegmentedControl.V8",
"Nri.Ui.Select.V5",
"Nri.Ui.Select.V6",
"Nri.Ui.Select.V7",
"Nri.Ui.Slide.V1",
"Nri.Ui.SlideModal.V1",
"Nri.Ui.SlideModal.V2",
"Nri.Ui.SortableTable.V1",
"Nri.Ui.SortableTable.V2",
"Nri.Ui.Svg.V1",
"Nri.Ui.Table.V4",
"Nri.Ui.Table.V5",
"Nri.Ui.Tabs.V4",
"Nri.Ui.Text.V2",
"Nri.Ui.Text.V4",
"Nri.Ui.Text.Writing.V1",
"Nri.Ui.TextArea.V4",
"Nri.Ui.TextInput.V3",
"Nri.Ui.TextInput.V4",
"Nri.Ui.TextInput.V5",
"Nri.Ui.Tooltip.V1",
"Nri.Ui.UiIcon.V1"
] ]
} }