This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-sbt.git
The following commit(s) were added to refs/heads/main by this push:
new 567e1cd Update versions-01 test to include 4.0.0
567e1cd is described below
commit 567e1cdbd4e021c54568df2e4376c2d578b6c805
Author: Steve Lawrence <[email protected]>
AuthorDate: Wed Nov 12 14:31:45 2025 -0500
Update versions-01 test to include 4.0.0
- Update test to use daffodil-tdml-junit, makes it easier to write tests
to that the work on most versiosn of Daffodil
- Remove 3.0.0 and 3.1.0 from the test, those are very old and do not
work with daffodil-tdml-junit
Closes #137
---
.../versions-01/src/test/scala/com/example/test.scala | 16 +++++++---------
src/sbt-test/sbt-daffodil/versions-01/test.script | 18 ++++++------------
2 files changed, 13 insertions(+), 21 deletions(-)
diff --git
a/src/sbt-test/sbt-daffodil/versions-01/src/test/scala/com/example/test.scala
b/src/sbt-test/sbt-daffodil/versions-01/src/test/scala/com/example/test.scala
index b9e6caf..4b65a86 100644
---
a/src/sbt-test/sbt-daffodil/versions-01/src/test/scala/com/example/test.scala
+++
b/src/sbt-test/sbt-daffodil/versions-01/src/test/scala/com/example/test.scala
@@ -17,19 +17,17 @@
package com.example
-import org.apache.daffodil.tdml.Runner
+import org.apache.daffodil.junit.tdml.TdmlSuite
+import org.apache.daffodil.junit.tdml.TdmlTests
-import org.junit.AfterClass
import org.junit.Test
-object TestExample {
- lazy val runner = Runner("/com/example/", "test.tdml")
-
- @AfterClass def shutdown: Unit = { runner.reset }
+object TestExample extends TdmlSuite {
+ val tdmlResource = "/com/example/test.tdml"
}
-class TestExample {
- import TestExample._
+class TestExample extends TdmlTests {
+ val tdmlSuite = TestExample
- @Test def test_test01() { runner.runOneTest("test01") }
+ @Test def test01 = test
}
diff --git a/src/sbt-test/sbt-daffodil/versions-01/test.script
b/src/sbt-test/sbt-daffodil/versions-01/test.script
index b7b4b8b..6b8f968 100644
--- a/src/sbt-test/sbt-daffodil/versions-01/test.script
+++ b/src/sbt-test/sbt-daffodil/versions-01/test.script
@@ -16,6 +16,12 @@
## under the License.
##
+> set daffodilVersion := "4.0.0"
+> packageDaffodilBin
+$ exists target/test-0.1-daffodil400.bin
+> test
+> clean
+
> set daffodilVersion := "3.11.0"
> packageDaffodilBin
$ exists target/test-0.1-daffodil3110.bin
@@ -75,15 +81,3 @@ $ exists target/test-0.1-daffodil330.bin
$ exists target/test-0.1-daffodil320.bin
> test
> clean
-
-> set daffodilVersion := "3.1.0"
-> packageDaffodilBin
-$ exists target/test-0.1-daffodil310.bin
-> test
-> clean
-
-> set daffodilVersion := "3.0.0"
-> packageDaffodilBin
-$ exists target/test-0.1-daffodil300.bin
-> test
-> clean