mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
add convenience script to run texttests
This commit is contained in:
1 parent
755ed77692
commit
79f509eeaf
4 files changed
+22
-2
No files matched your search
+2
-1
@@ -5,4 +5,5 @@ obj
|
|||||||
vendor
|
vendor
|
||||||
.idea
|
.idea
|
||||||
*.iml
|
*.iml
|
||||||
csharpcore/GildedRoseTests/ApprovalTest.ThirtyDays.received.txt
|
**/*.received.*
|
||||||
|
venv
|
||||||
+5
-1
@@ -14,6 +14,10 @@ For e.g. 10 days:
|
|||||||
./gradlew -q text --args 10
|
./gradlew -q text --args 10
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You should make sure the gradle commands shown above work when you execute them in a terminal before trying to use TextTest (see below).
|
||||||
|
|
||||||
|
|
||||||
## Run the TextTest approval test that comes with this project
|
## Run the TextTest approval test that comes with this project
|
||||||
|
|
||||||
There are instructions in the [TextTest Readme](https://github.com/emilybache/GildedRose-Refactoring-Kata/blob/main/texttests/README.md) for setting up TextTest. What's unusual for the Java version is there are two executables listed in [config.gr](https://github.com/emilybache/GildedRose-Refactoring-Kata/blob/main/texttests/config.gr) for Java. One uses Gradle wrapped in a python script, the other relies on your CLASSPATH being set correctly in [environment.gr](https://github.com/emilybache/GildedRose-Refactoring-Kata/blob/main/texttests/environment.gr).
|
There are instructions in the [TextTest Readme](../texttests/README.md) for setting up TextTest. What's unusual for the Java version is there are two executables listed in [config.gr](../texttests/config.gr) for Java. One uses Gradle wrapped in a python script, the other relies on your CLASSPATH being set correctly in [environment.gr](../texttests/environment.gr).
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
set TEXTTEST_HOME=%~dp0
|
||||||
|
cd %TEXTTEST_HOME%
|
||||||
|
|
||||||
|
if not exist "venv" (
|
||||||
|
py -m venv venv
|
||||||
|
)
|
||||||
|
|
||||||
|
venv\Scripts\pip install texttest
|
||||||
|
|
||||||
|
if %ERRORLEVEL% GEQ 1 (
|
||||||
|
pause
|
||||||
|
) else (
|
||||||
|
venv\Scripts\texttestc.py -con %*
|
||||||
|
)
|
||||||
Reference in new issue
Block a user