Skip to content

Latest commit

 

History

History
executable file
·
212 lines (123 loc) · 9.85 KB

test_doc.md

File metadata and controls

executable file
·
212 lines (123 loc) · 9.85 KB

default_test_factory.make_named_split

load("@rules_ios//rules:test.bzl", "default_test_factory")

default_test_factory.make_named_split(name, split_kwargs, in_split)

PARAMETERS

Name Description Default Value
name

-

none
split_kwargs

-

none
in_split

-

none

default_test_factory.make_runner_split

load("@rules_ios//rules:test.bzl", "default_test_factory")

default_test_factory.make_runner_split(name, runner, in_split)

PARAMETERS

Name Description Default Value
name

-

none
runner

-

none
in_split

-

none

default_test_factory.make_test

load("@rules_ios//rules:test.bzl", "default_test_factory")

default_test_factory.make_test(name, test_rule, kwargs)

Helper to create an individual test

PARAMETERS

Name Description Default Value
name

-

none
test_rule

-

none
kwargs

-

none

default_test_factory.make_test_suite

load("@rules_ios//rules:test.bzl", "default_test_factory")

default_test_factory.make_test_suite(factory, name, test_rule, test_kwargs)

PARAMETERS

Name Description Default Value
factory

-

none
name

-

none
test_rule

-

none
test_kwargs

-

none

default_test_factory.make_test_suite_splits

load("@rules_ios//rules:test.bzl", "default_test_factory")

default_test_factory.make_test_suite_splits(factory, name, in_kwargs)

Helper function to split up a test for named splits and runners splits

At the end of the day, we need to able to control how many tests / bundles there are for sharding by class, otherwise it would recompile many times.

Finally - you can set the splits to be whatever you want.

PARAMETERS

Name Description Default Value
factory

-

none
name

-

none
in_kwargs

-

none

default_test_factory.make_tests

load("@rules_ios//rules:test.bzl", "default_test_factory")

default_test_factory.make_tests(factory, name, test_rule, kwargs)

Main entry point of generating tests"

PARAMETERS

Name Description Default Value
factory

-

none
name

-

none
test_rule

-

none
kwargs

-

none

ios_ui_test

load("@rules_ios//rules:test.bzl", "ios_ui_test")

ios_ui_test(name, apple_library, test_factory, kwargs)

Builds and packages iOS UI Tests.

PARAMETERS

Name Description Default Value
name The name of the UI test. none
apple_library The macro used to package sources into a library. <function apple_library from //rules:library.bzl>
test_factory Use this to generate other variations of tests. struct(make_named_split = <function _make_named_split from //rules:test.bzl>, make_runner_split = <function _make_runner_split from //rules:test.bzl>, make_test = <function _make_test from //rules:test.bzl>, make_test_suite = <function _make_test_suite from //rules:test.bzl>, make_test_suite_splits = <function _make_test_suite_splits from //rules:test.bzl>, make_tests = <function _make_tests from //rules:test.bzl>)
kwargs Arguments passed to the apple_library and ios_ui_test rules as appropriate. none

ios_unit_snapshot_test

load("@rules_ios//rules:test.bzl", "ios_unit_snapshot_test")

ios_unit_snapshot_test(name, apple_library, test_factory, kwargs)

Builds and packages iOS Unit Snapshot Tests.

PARAMETERS

Name Description Default Value
name The name of the UI test. none
apple_library The macro used to package sources into a library. <function apple_library from //rules:library.bzl>
test_factory Use this to generate other variations of tests. struct(make_named_split = <function _make_named_split from //rules:test.bzl>, make_runner_split = <function _make_runner_split from //rules:test.bzl>, make_test = <function _make_test from //rules:test.bzl>, make_test_suite = <function _make_test_suite from //rules:test.bzl>, make_test_suite_splits = <function _make_test_suite_splits from //rules:test.bzl>, make_tests = <function _make_tests from //rules:test.bzl>)
kwargs Arguments passed to the apple_library and ios_unit_test rules as appropriate. none

ios_unit_test

load("@rules_ios//rules:test.bzl", "ios_unit_test")

ios_unit_test(name, apple_library, test_factory, kwargs)

Builds and packages iOS Unit Tests.

PARAMETERS

Name Description Default Value
name The name of the unit test. none
apple_library The macro used to package sources into a library. <function apple_library from //rules:library.bzl>
test_factory Use this to generate other variations of tests. struct(make_named_split = <function _make_named_split from //rules:test.bzl>, make_runner_split = <function _make_runner_split from //rules:test.bzl>, make_test = <function _make_test from //rules:test.bzl>, make_test_suite = <function _make_test_suite from //rules:test.bzl>, make_test_suite_splits = <function _make_test_suite_splits from //rules:test.bzl>, make_tests = <function _make_tests from //rules:test.bzl>)
kwargs Arguments passed to the apple_library and ios_unit_test rules as appropriate. none