PropSchema v0.1.1 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
Can be used independently, but personally I’d just use __using__/1
Link to this section Types
Link to this section Functions
__using__(prop_test_args()) :: PropSchema.Types.ast_expression()
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
prop_test(prop_test_args()) :: PropSchema.Types.ast_expression()
Can be used independently, but personally I’d just use __using__/1
.