PropSchema v0.2.0 PropSchema.Executor

Reads the prop_schema information from the provided module. Then it constructs a series of prop tests according to provided field requirements and other considerations declared in the schema. Once the tests are all constructed the tests will run through the normal mix test routine.

Link to this section Summary

Functions

Call in a test file to generate and execute property tests for the given schema, [to_test: module]. [additional_properties: module] is used to provide properties not yet implemented in the base PropSchema.BaseProperties module

Link to this section Types

Link to this type prop_test_args()
prop_test_args() :: [to_test: atom(), additional_properties: atom()]

Link to this section Functions

Link to this macro __using__(args) (macro)

Call in a test file to generate and execute property tests for the given schema, [to_test: module]. [additional_properties: module] is used to provide properties not yet implemented in the base PropSchema.BaseProperties module.

Example

defmodule PropSchemaTest do
  use PropSchema.Executor,
    to_test: PropSchema.TestModule,
    additional_properties: PropSchema.TestAdditionalProperties
end