Skip to content

Commit 6bdab0c

Browse files
committed
Couple CONTRIB improvements
1 parent d3fa6b7 commit 6bdab0c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ env
44
__pycache__
55
.venv
66
venv
7+
.idea

CONTRIBUTING.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,27 @@ Before running any tests, first deploy the test application:
1515

1616
- Use Java 8 or higher
1717
- `cd test-app`
18-
- Verify that the host/port/username/admin in `gradle.properties` work for your ML install
18+
- Create a file named `gradle-local.properties` and add `mlPassword=` to it, with the value of the property being
19+
your admin user's password.
20+
- Verify that the host/port/username in `gradle.properties` work for your MarkLogic installation.
1921
- Run `./gradlew -i mlDeploy`
2022
- `cd ..`
2123

2224
Then run all the tests:
2325

2426
pytest
2527

26-
To run an individual test with logging to stdout:
28+
To run an individual test:
2729

28-
pytest -s tests/test_search.py
30+
pytest tests/test_search.py
2931

3032
To run an individual test method:
3133

32-
pytest -s test/test_search.py::test_search
34+
pytest test/test_search.py::test_search
35+
36+
Note that due to the pytest config in the `pyproject.toml` file, all
37+
[Python logging](https://docs.python.org/3/howto/logging.html) should appear immediately
38+
as tests are executed.
3339

3440
## Testing the client in a Python shell
3541

0 commit comments

Comments
 (0)