* running all the tests * setting up CI * fixed the workflow * workflow on pull request, just to make it appear * removed the test to run var * fix archived tests name * improved the tests, by filtering out some noise * pr suggestions and added an improvement to the filtering * improved the interrupt handler * improved the UI interruption monitor handler * some more refinement to handle the interruptor + false positive for non human readable labels * reverted wrong commit * ready for review, removed the on pull request check * pr suggestions
32 lines
843 B
Plaintext
32 lines
843 B
Plaintext
// swiftlint:disable all
|
|
// swiftformat:disable all
|
|
|
|
{% if argument.mainTarget %}
|
|
@testable import {{ argument.mainTarget }}
|
|
{% endif %}
|
|
{% for import in argument.imports %}
|
|
{% if import != "last" %}
|
|
import {{ import }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% for import in argument.testableImports %}
|
|
{% if import != "last" %}
|
|
@testable import {{ import }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
extension AccessibilityTests {
|
|
|
|
{% for type in types.types where (type.implements.TestablePreview or type.based.TestablePreview or type|annotated:"TestablePreview") and type.name != "TestablePreview" %}
|
|
func test{{ type.name|replace:"_Previews", "" }}() async throws {
|
|
try await performAccessibilityAudit(named: "{{ type.name }}")
|
|
}
|
|
{%- if not forloop.last %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
}
|
|
|
|
// swiftlint:enable all
|
|
// swiftformat:enable all
|