From 5904431bde9d4dc46c76f931eda869a76e35be0f Mon Sep 17 00:00:00 2001 From: Ralf Comtesse Date: Fri, 26 Sep 2025 21:14:05 +0200 Subject: [PATCH] removed extra, unnecessary run in texttest_rig.py --- scala/texttest_rig.py | 4 ++-- texttests/ThirtyDays/stdout.gr | 35 ++++++---------------------------- 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/scala/texttest_rig.py b/scala/texttest_rig.py index 5ed7cf01..23bd74f7 100644 --- a/scala/texttest_rig.py +++ b/scala/texttest_rig.py @@ -1,6 +1,6 @@ #!/usr/bin/env python """ -This script uses Gradle to execute the TexttestFixture. +This script uses sbt to execute the TexttestFixture. It is designed to be used by TextTest and specified in the file 'texttests/config.gr' in this repo. It is more convenient for TextTest to use since Gradle needs several arguments in addition to the one the TextTest fixture needs. @@ -11,4 +11,4 @@ import sys args = " ".join(sys.argv[1:]) TEXTTEST_HOME = os.environ.get("TEXTTEST_HOME", os.getcwd()) -subprocess.run(f"""(cd {TEXTTEST_HOME}/scala/; sbt run "Test / runMain com.gildedrose.TexttestFixture {args}") """, shell=True) +subprocess.run(f"""(cd {TEXTTEST_HOME}/scala/; sbt "Test / runMain com.gildedrose.TexttestFixture {args}") """, shell=True) diff --git a/texttests/ThirtyDays/stdout.gr b/texttests/ThirtyDays/stdout.gr index 486bd1ac..3edea854 100644 --- a/texttests/ThirtyDays/stdout.gr +++ b/texttests/ThirtyDays/stdout.gr @@ -4,36 +4,13 @@ [info] loading project definition from /Users/rco/Developer/katas/GildedRose-Refactoring-Kata/scala/project/project [info] loading project definition from /Users/rco/Developer/katas/GildedRose-Refactoring-Kata/scala/project [success] Generated .bloop/scala-build.json -[success] Total time: 1 s, completed 26.09.2025, 20:01:30 +[success] Total time: 1 s, completed 26.09.2025, 20:16:59 [info] loading settings for project root from build.sbt... [info] set current project to GildedRose (in build file:/Users/rco/Developer/katas/GildedRose-Refactoring-Kata/scala/) -[info] running com.gildedrose.Main -OMGHAI! --------- day 0 -------- -name, sellIn, quality -+5 Dexterity Vest, 10, 20 -Aged Brie, 2, 0 -Elixir of the Mongoose, 5, 7 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 15, 20 -Backstage passes to a TAFKAL80ETC concert, 10, 49 -Backstage passes to a TAFKAL80ETC concert, 5, 49 -Conjured Mana Cake, 3, 6 - --------- day 1 -------- -name, sellIn, quality -+5 Dexterity Vest, 9, 19 -Aged Brie, 1, 1 -Elixir of the Mongoose, 4, 6 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 14, 21 -Backstage passes to a TAFKAL80ETC concert, 9, 50 -Backstage passes to a TAFKAL80ETC concert, 4, 50 -Conjured Mana Cake, 2, 5 - -[success] Total time: 0 s, completed 26.09.2025, 20:01:31 +[info] compiling 3 Scala sources to /Users/rco/Developer/katas/GildedRose-Refactoring-Kata/scala/target/scala-3.7.3/classes ... +[info] done compiling +[info] compiling 2 Scala sources to /Users/rco/Developer/katas/GildedRose-Refactoring-Kata/scala/target/scala-3.7.3/test-classes ... +[info] done compiling [info] running com.gildedrose.TexttestFixture 30 OMGHAI! -------- day 0 -------- @@ -408,4 +385,4 @@ Backstage passes to a TAFKAL80ETC concert, -20, 0 Backstage passes to a TAFKAL80ETC concert, -25, 0 Conjured Mana Cake, -27, 0 -[success] Total time: 0 s, completed 26.09.2025, 20:01:31 +[success] Total time: 2 s, completed 26.09.2025, 20:17:01