Skip to content

Test filters

To granulary organize pipelines you may want to execute only some subsets of tests. To do this you define a list of inclusive predicates.

filters make sense only in configuration clause.

iOS#

tests:
  configurations:
    - platform: ios
      #...
      filters:
        - FirstTestClass
        - SecondTestClass/testMethod

Specify class names with or without method names in XCTest compatible format.

Android#

Since Emcee version 21.6.0 the Android configuration has a different filters configuration (we will add the same configuration for iOS in the future).

tests:
  configurations:
    - platform: android
      #...
      filters:
        include:
          -   type: annotation
              values:
                - LargeTest
                - RegressTest # you can set multiply values
          -   type: class
              values:
                - LaunchThisClassTest
        exclude:
          -   type: package
              values:
                - exclude.this.package.com

Available filter types:

  • class
  • test_method
  • package
  • annotation

You can mix include and exclude filters together. In this case the result list will contain include tests minus exclude tests. Or you can use include and exclude separately.