mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
add convenience script to run texttests
This commit is contained in:
parent
755ed77692
commit
79f509eeaf
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,4 +5,5 @@ obj
|
|||||||
vendor
|
vendor
|
||||||
.idea
|
.idea
|
||||||
*.iml
|
*.iml
|
||||||
csharpcore/GildedRoseTests/ApprovalTest.ThirtyDays.received.txt
|
**/*.received.*
|
||||||
|
venv
|
||||||
|
|||||||
@ -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).
|
||||||
|
|
||||||
|
|||||||
1
Java/gradle.properties
Normal file
1
Java/gradle.properties
Normal file
@ -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
|
||||||
14
start_texttest.bat
Normal file
14
start_texttest.bat
Normal file
@ -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 %*
|
||||||
|
)
|
||||||
Loading…
Reference in New Issue
Block a user