Move test runs into the test-run folder, add TimestampStrings, add basic tests via pytest
pytest added for dev. Move all the test run python scripts into the "test-run" folder, so we can use the tests/ folder for just tests. Setup one test for the TimestampStrings class with pytests in tests/unit/string_handling/test_timestamp_strings.py
This commit is contained in:
16
ReadMe.md
16
ReadMe.md
@@ -51,18 +51,24 @@ We must set the full index URL here because we run with "--no-project"
|
||||
uv run --with corelibs --index egra-gitea=https://git.egplusww.jp/api/packages/PyPI/pypi/simple/ --no-project --native-tls -- python -c "import corelibs"
|
||||
```
|
||||
|
||||
### Python tests
|
||||
|
||||
All python tests are the tests/ folder. They are structured by the source folder layout
|
||||
|
||||
### Other tests
|
||||
|
||||
In the test folder other tests are located.
|
||||
|
||||
At the moment only a small test for the "progress" and the "double byte string format" module is set
|
||||
In the test-run folder usage and run tests are located
|
||||
|
||||
```sh
|
||||
uv run --native-tls tests/progress/progress_test.py
|
||||
uv run --native-tls test-run/progress/progress_test.py
|
||||
```
|
||||
|
||||
```sh
|
||||
uv run --native-tls tests/double_byte_string_format/double_byte_string_format.py
|
||||
uv run --native-tls test-run/double_byte_string_format/double_byte_string_format.py
|
||||
```
|
||||
|
||||
```sh
|
||||
uv run --native-tls test-run/timestamp_strings/timestamp_strings.py
|
||||
```
|
||||
|
||||
## How to install in another project
|
||||
|
||||
Reference in New Issue
Block a user