Functions

createTestCase

createTestCase(scenario: String, testUrl: { content: String, url: String }, context: { _?: Any }, expected: Any, expectedPath: String, mimeType: String): () -> TestResult

createTestCases

createTestCases(mappingDir: String, resourceProvider: TestResourceProvider): Array<() -> TestResult>

Creates a Single Test Case from the

Parameters
Name Description

mappingDir

The mapping directory path

testUrlProvider

Factory function that returns the url of the mapping file to be executed

createTestSuite

createTestSuite(directory: String, resourceProvider: TestResourceProvider): Array<() -> TestResult>

Creates all the tests suites from a given directory.

Parameters
Name Description

directory

The directory where to search all the test cases

evalPathTest

evalPathTest(testUrl: { content: String, url: String }, context: { _?: Any }, expected: Any, expectedPath: String, mimeType: String): TestResult

Types

TestResourceProvider

Definition
1
(mappingDir: String, testCase: String) -> { content: String, url: String }