Skip to content

Instantly share code, notes, and snippets.

@zawadz88
Last active January 23, 2019 16:17
Show Gist options
  • Select an option

  • Save zawadz88/0540c36ac7f96d4a00df20496db77336 to your computer and use it in GitHub Desktop.

Select an option

Save zawadz88/0540c36ac7f96d4a00df20496db77336 to your computer and use it in GitHub Desktop.
Custom annotation
package com.stepstone.base.test.runner.annotation
/**
* Used for narrowing down on which brands any given test/test suite should be executed.
*
* @see com.stepstone.base.test.runner.filter.FlavorFilter
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
annotation class TestFilter(
val filters: Array<String> = [
FLAVOR_1, FLAVOR_2, FLAVOR_3, FLAVOR_4],
val notFilters: Array<String> = [])
const val FLAVOR_1 = "flavor1"
const val FLAVOR_2 = "flavor2"
const val FLAVOR_3 = "flavor3"
const val FLAVOR_4 = "flavor4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment