Skip to content

Commit

Permalink
updated the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacmaffeis committed Aug 17, 2024
1 parent b6fc0d3 commit ff64b6c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 40 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ VOLUME ["/app/evosuite-files"]
VOLUME ["/app/evosuite-report"]
VOLUME ["/app/evosuite-tests"]

WORKDIR /app/scripts
WORKDIR /app

RUN chmod +x mvn_setup.sh

CMD ["python", "./help.py"]
CMD ["python", "./scripts/help.py"]
26 changes: 24 additions & 2 deletions scripts/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,30 @@ def print_help():
1. help.py: show this message.
2. retrieveInput.py: retrieve the Java file and inject the class into
the application for further processing.
3. **Script 3**: Description...
3. //TO-DO
4. Setup Maven and Evosuite:
- Install the Evosuite Runtime JAR:
'mvn install:install-file -Dfile="evosuite-standalone-runtime-1.2.0.jar" -DgroupId="org.evosuite" -DartifactId="evosuite-standalone-runtime" -Dversion="1.2.0" -Dpackaging="jar"'
- Compile the Maven Project:
'mvn compile'
- Copy Maven Dependencies:
'mvn dependency:copy-dependencies -DincludeScope=runtime'
- Setup Evosuite:
'java -jar evosuite-standalone-runtime-1.2.0.jar -setup target/classes target/dependency/commons-collections-3.2.2.jar'
5. Generate Test Cases:
To generate test cases for a specific class, run the following command:
'java -jar evosuite-standalone-runtime-1.2.0.jar -class <inputFile>'
// TO-DO : add params
6. Test the application
- Copy Generated Test Cases into the project:
'xcopy evosuite-tests\\* src\\test\\java /E /I /Y'
- Run the Test suite:
'mvn test'
EvoService uses the EvoSuite services,
see https://github.com/EvoSuite/evosuite for further information.
"""
Expand Down
32 changes: 0 additions & 32 deletions scripts/mvn_setup.sh

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/retrieveInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def retrieve_input(input_dir, output_dir):

if __name__ == "__main__":

input_folder = f"../input"
output_folder = f"../src/main/java/org/evoservice"
input_folder = f"./input"
output_folder = f"./src/main/java/org/evoservice"

retrieve_input(input_folder, output_folder)

0 comments on commit ff64b6c

Please sign in to comment.