Class

org.apache.daffodil.tdml

DFDLTestSuite

Related Doc: package tdml

Permalink

class DFDLTestSuite extends Logging with HasSetDebugger

TDML test suite runner

Keep this independent of Daffodil, so that it can be used to run tests against other DFDL implementations as well. E.g., it should only need an API specified as a collection of Scala traits, and some simple way to inject dependency on one factory to create processors.

Use the validateTDMLFile arg to bypass validation of the TDML document itself.

This is used for testing whether one can detect validation errors in the DFDL schema.

Without this, you can't get to the validation errors, because it rejects the TDML file itself.

defaultRoundTripDefault the round trip default for the test suite will be taken from this value if it is not specified on the testSuite itself.

defaultValidationDefault the validation default for the test suite will be taken from this value if it is not specified on the testSuite itself.

defaultImplementationsDefault the implementations default for the test suite will be taken from this value if it is not specified on the testSuite itself.

shouldDoErrorComparisonOnCrossTests controls whether negative test error messages are compared during cross testing, or the tests are just run to determine that they fail.

shouldDoWarningComparisonOnCrossTests controls whether test warning messages are compared during cross testing.

Linear Supertypes
HasSetDebugger, Logging, Identity, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DFDLTestSuite
  2. HasSetDebugger
  3. Logging
  4. Identity
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DFDLTestSuite(aNodeFileOrURL: Any, validateTDMLFile: Boolean = true, validateDFDLSchemas: Boolean = true, compileAllTopLevel: Boolean = false, defaultRoundTripDefault: RoundTrip = ..., defaultValidationDefault: String = ..., defaultImplementationsDefault: Seq[String] = ..., shouldDoErrorComparisonOnCrossTests: Boolean = ..., shouldDoWarningComparisonOnCrossTests: Boolean = ...)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val TMP_DIR: String

    Permalink
  5. val __nl: Null

    Permalink
  6. var areDebugging: Boolean

    Permalink
  7. final def areLogging(lvl: Type): Boolean

    Permalink
    Definition Classes
    Logging
  8. var areTracing: Boolean

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. var checkAllTopLevel: Boolean

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val compileAllTopLevel: Boolean

    Permalink
  13. var daffodilDebugger: AnyRef

    Permalink
  14. val defaultConfig: String

    Permalink
  15. val defaultImplementations: Seq[String]

    Permalink
  16. val defaultImplementationsDefault: Seq[String]

    Permalink
  17. val defaultRoundTrip: RoundTrip

    Permalink
  18. val defaultRoundTripDefault: RoundTrip

    Permalink
  19. val defaultValidation: String

    Permalink
  20. val defaultValidationDefault: String

    Permalink
  21. val description: String

    Permalink
  22. def doLogging(lvl: Type, msg: String, args: Seq[Any]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. val duplicateTestCases: Map[String, Seq[TestCase]]

    Permalink
  24. val embeddedConfigs: Seq[DefinedConfig]

    Permalink
  25. val embeddedSchemas: Seq[DefinedSchema]

    Permalink
  26. val embeddedSchemasRaw: Seq[DefinedSchema]

    Permalink
  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  29. val errorHandler: ErrorHandler

    Permalink
  30. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. def findConfigFileName(configName: String): Option[URI]

    Permalink
  32. def findEmbeddedConfig(configName: String): Option[DefinedConfig]

    Permalink
  33. def findEmbeddedSchema(modelName: String): Option[DefinedSchema]

    Permalink
  34. def findSchemaFileName(modelName: String): Option[URI]

    Permalink
  35. def findTDMLResource(resName: String): Option[URI]

    Permalink

    Try a few possibilities to find the model/schema/tdml resources

    Try a few possibilities to find the model/schema/tdml resources

    IBM's suites have funny model paths in them. We don't have that file structure, so we look for the schema/model/tdml resources in the working directory, and in the same directory as the tdml file, and some other variations.

  36. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  37. def getLogWriter(): LogWriter

    Permalink
    Definition Classes
    Logging
  38. final def getLoggingLevel(): Type

    Permalink
    Definition Classes
    Logging
  39. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. var isLoadingError: Boolean

    Permalink
  42. lazy val isTDMLFileValid: Boolean

    Permalink
  43. val loader: DaffodilXMLLoader

    Permalink

    our loader here accumulates load-time errors here on the test suite object.

  44. def loadingDiagnosticMessages: String

    Permalink
  45. var loadingExceptions: List[Exception]

    Permalink
  46. final macro def log(lvl: Type, msg: String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  47. lazy val logID: String

    Permalink
    Definition Classes
    Logging → Identity
  48. var logLevel: Maybe[Type]

    Permalink
    Definition Classes
    Logging
  49. var logWriter: Maybe[LogWriter]

    Permalink
    Definition Classes
    Logging
  50. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  51. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. val parserTestCases: Seq[ParserTestCase]

    Permalink
  54. def runAllTests(schema: Option[Node] = None): Unit

    Permalink
  55. def runOneTest(testName: String, schema: Option[Node] = None, leakCheck: Boolean = false): Unit

    Permalink
  56. def setCheckAllTopLevel(flag: Boolean): Unit

    Permalink
  57. def setDebugger(db: AnyRef): Unit

    Permalink
    Definition Classes
    DFDLTestSuite → HasSetDebugger
  58. def setDebugging(flag: Boolean): Unit

    Permalink
    Definition Classes
    DFDLTestSuite → HasSetDebugger
  59. def setLogWriter(lw: LogWriter): Unit

    Permalink
    Definition Classes
    Logging
  60. def setLoggingLevel(level: Type): Unit

    Permalink
    Definition Classes
    Logging
  61. val shouldDoErrorComparisonOnCrossTests: Boolean

    Permalink
  62. val shouldDoWarningComparisonOnCrossTests: Boolean

    Permalink
  63. val suiteID: String

    Permalink
  64. val suiteName: String

    Permalink
  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  66. val testCaseMap: Map[String, TestCase]

    Permalink
  67. val testCases: Seq[TestCase]

    Permalink
  68. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  69. def trace: DFDLTestSuite

    Permalink
  70. val ts: Node

    Permalink
  71. val tsURI: URI

    Permalink
  72. val unparserTestCases: Seq[UnparserTestCase]

    Permalink
  73. val validateDFDLSchemas: Boolean

    Permalink
  74. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. macro def withLoggingLevel[S](newLevel: Type)(body: ⇒ S): Unit

    Permalink
    Definition Classes
    Logging

Inherited from HasSetDebugger

Inherited from Logging

Inherited from Identity

Inherited from AnyRef

Inherited from Any

Ungrouped