Commit 66a103d 1 parent 6916627 commit 66a103d Copy full SHA for 66a103d
File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ You'll need:
33
33
- Java 17
34
34
- Python >= 3.9 (For generating example / test files)
35
35
- Install the ` python/railjson_generator ` library using poetry:
36
+
36
37
``` sh
37
38
poetry --directory=../python/railjson_generator install
38
39
```
@@ -47,7 +48,7 @@ You'll need:
47
48
gradlew.bat processTestResources shadowJar
48
49
49
50
# Run as service
50
- java -jar build/libs/osrd-all.jar api --url http://localhost:8090/ -p 8080
51
+ java -jar build/libs/osrd-all.jar api --editoast- url http://localhost:8090/ -p 8080
51
52
52
53
# Check that an infra can be loaded
53
54
java -jar build/libs/osrd-all.jar load-infra --path RAILJSON_INFRA
@@ -67,3 +68,17 @@ gradlew.bat processTestResources shadowJar
67
68
java -jar build/libs/osrd-all.jar standalone-simulation --infra_path example/infra.json \
68
69
--sim_path example/simulation.json --res_path example/results.json
69
70
```
71
+
72
+ ### Tests and tooling
73
+
74
+ To launch all the checks on core (tests and code quality), run:
75
+
76
+ ``` sh
77
+ ./gradlew check
78
+ ```
79
+
80
+ To launch tests only, run:
81
+
82
+ ``` sh
83
+ ./gradlew test
84
+ ```
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ To run tests `poetry run pytest` after starting docker containers (`docker compo
6
6
7
7
To run a list of specific tests, run ` poetry run pytest -k test_name_1 test_name_2 ... ` .
8
8
9
+ To setup end-to-end (e2e) tests, please see [ front readme] ( ../front/README.md#yarn-e2e-tests ) .
10
+
9
11
### Create new integration tests
10
12
11
13
To add a test, follow [ pytest doc] ( https://docs.pytest.org/ ) .
You can’t perform that action at this time.
0 commit comments