mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-27 13:02:42 +03:00
Merge pull request #580 from NoRedInk/make-tests-nicer
Make tests nicer
This commit is contained in:
commit
9053c4d283
4
Makefile
4
Makefile
@ -23,10 +23,10 @@ axe-report: tests/axe-report.json script/format-axe-report.sh script/axe-report.
|
|||||||
percy-tests:
|
percy-tests:
|
||||||
script/percy-tests.sh
|
script/percy-tests.sh
|
||||||
|
|
||||||
tests/deprecated-imports-report.txt: $(shell find src -type f) script/deprecated-imports.py
|
tests/deprecated-imports-report.txt: $(shell find src tests -type f) script/deprecated-imports.py
|
||||||
script/deprecated-imports.py report > $@
|
script/deprecated-imports.py report > $@
|
||||||
|
|
||||||
script/deprecated-imports.csv: $(shell find src -type f) script/deprecated-imports.py
|
script/deprecated-imports.csv: $(shell find src tests -type f) script/deprecated-imports.py
|
||||||
script/deprecated-imports.py --imports-file $@ update
|
script/deprecated-imports.py --imports-file $@ update
|
||||||
|
|
||||||
.PHONY: deprecated-imports-report
|
.PHONY: deprecated-imports-report
|
||||||
|
@ -10,3 +10,8 @@ src/Nri/Ui/Icon/V5.elm,Html,DEPRECATED
|
|||||||
src/Nri/Ui/Icon/V4.elm,Accessibility.Role,DEPRECATED
|
src/Nri/Ui/Icon/V4.elm,Accessibility.Role,DEPRECATED
|
||||||
src/Nri/Ui/Icon/V4.elm,Html,DEPRECATED
|
src/Nri/Ui/Icon/V4.elm,Html,DEPRECATED
|
||||||
src/Nri/Ui/Modal/V3.elm,Nri.Ui.Icon,3
|
src/Nri/Ui/Modal/V3.elm,Nri.Ui.Icon,3
|
||||||
|
tests/Spec/Nri/Ui/Tooltip.elm,Accessibility.Aria,DEPRECATED
|
||||||
|
tests/Spec/Nri/Ui/Tooltip.elm,Accessibility.Widget,DEPRECATED
|
||||||
|
tests/Spec/Nri/Ui/Tooltip.elm,Html,DEPRECATED
|
||||||
|
tests/Spec/Nri/Ui/Select.elm,Html,DEPRECATED
|
||||||
|
tests/Spec/Nri/Ui/Select.elm,Nri.Ui.Select,5
|
||||||
|
|
@ -27,6 +27,10 @@ class ElmJson:
|
|||||||
self.elm_version = self.data["elm-version"]
|
self.elm_version = self.data["elm-version"]
|
||||||
self.source_directories = ["src"]
|
self.source_directories = ["src"]
|
||||||
|
|
||||||
|
potential_test_directory = os.path.join(os.path.dirname(path), 'tests')
|
||||||
|
if os.path.exists(potential_test_directory):
|
||||||
|
self.source_directories.append(potential_test_directory)
|
||||||
|
|
||||||
|
|
||||||
class NriUiModules:
|
class NriUiModules:
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module Spec.Nri.Ui.Page.V3 exposing (all)
|
module Spec.Nri.Ui.Page exposing (all)
|
||||||
|
|
||||||
import Expect exposing (Expectation)
|
import Expect exposing (Expectation)
|
||||||
import Html.Styled as Html
|
import Html.Styled as Html
|
@ -1,4 +1,4 @@
|
|||||||
module Spec.Nri.Ui.PremiumCheckbox.V6 exposing (spec)
|
module Spec.Nri.Ui.PremiumCheckbox exposing (spec)
|
||||||
|
|
||||||
import Html.Attributes as Attributes
|
import Html.Attributes as Attributes
|
||||||
import Html.Styled
|
import Html.Styled
|
@ -1,4 +1,4 @@
|
|||||||
module Spec.Nri.Ui.SlideModal.V2 exposing (all)
|
module Spec.Nri.Ui.SlideModal exposing (all)
|
||||||
|
|
||||||
import Css
|
import Css
|
||||||
import Expect exposing (Expectation)
|
import Expect exposing (Expectation)
|
@ -1,4 +1,4 @@
|
|||||||
module Spec.Nri.Ui.SortableTable.V2 exposing (spec)
|
module Spec.Nri.Ui.SortableTable exposing (spec)
|
||||||
|
|
||||||
import Expect exposing (Expectation)
|
import Expect exposing (Expectation)
|
||||||
import Html.Styled
|
import Html.Styled
|
@ -1,4 +1,4 @@
|
|||||||
module Spec.Nri.Ui.TextInput.V6 exposing (spec)
|
module Spec.Nri.Ui.TextInput exposing (spec)
|
||||||
|
|
||||||
import Html.Styled
|
import Html.Styled
|
||||||
import Nri.Ui.TextInput.V6 as TextInput
|
import Nri.Ui.TextInput.V6 as TextInput
|
@ -1,4 +1,4 @@
|
|||||||
module Spec.Nri.Ui.Tooltip.V1 exposing (spec)
|
module Spec.Nri.Ui.Tooltip exposing (spec)
|
||||||
|
|
||||||
import Accessibility.Aria as Aria
|
import Accessibility.Aria as Aria
|
||||||
import Accessibility.Widget as Widget
|
import Accessibility.Widget as Widget
|
Loading…
Reference in New Issue
Block a user