Merge pull request #580 from NoRedInk/make-tests-nicer

Make tests nicer
This commit is contained in:
Juan Edi 2020-08-14 13:47:16 -03:00 committed by GitHub
commit 9053c4d283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 8 deletions

View File

@ -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

View File

@ -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

1 filename name version
10 src/Nri/Ui/Icon/V4.elm Accessibility.Role DEPRECATED
11 src/Nri/Ui/Icon/V4.elm Html DEPRECATED
12 src/Nri/Ui/Modal/V3.elm Nri.Ui.Icon 3
13 tests/Spec/Nri/Ui/Tooltip.elm Accessibility.Aria DEPRECATED
14 tests/Spec/Nri/Ui/Tooltip.elm Accessibility.Widget DEPRECATED
15 tests/Spec/Nri/Ui/Tooltip.elm Html DEPRECATED
16 tests/Spec/Nri/Ui/Select.elm Html DEPRECATED
17 tests/Spec/Nri/Ui/Select.elm Nri.Ui.Select 5

View File

@ -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:
""" """

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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