QuickConfiguration.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #import <Foundation/Foundation.h>
  2. @class Configuration;
  3. /**
  4. Subclass QuickConfiguration and override the +[QuickConfiguration configure:]
  5. method in order to configure how Quick behaves when running specs, or to define
  6. shared examples that are used across spec files.
  7. */
  8. @interface QuickConfiguration : NSObject
  9. /**
  10. This method is executed on each subclass of this class before Quick runs
  11. any examples. You may override this method on as many subclasses as you like, but
  12. there is no guarantee as to the order in which these methods are executed.
  13. You can override this method in order to:
  14. 1. Configure how Quick behaves, by modifying properties on the Configuration object.
  15. Setting the same properties in several methods has undefined behavior.
  16. 2. Define shared examples using `sharedExamples`.
  17. @param configuration A mutable object that is used to configure how Quick behaves on
  18. a framework level. For details on all the options, see the
  19. documentation in Configuration.swift.
  20. */
  21. + (void)configure:(Configuration *)configuration;
  22. @end