mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-06 11:37:12 +00:00
make test
-> make unit_test
This commit is contained in:
parent
083a99b102
commit
0bbfdaf3d5
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -22,7 +22,7 @@ Thank you for contributing to LangChain! Follow these steps to mark your pull re
|
|||||||
1. A test for the integration, preferably unit tests that do not rely on network access,
|
1. A test for the integration, preferably unit tests that do not rely on network access,
|
||||||
2. An example notebook showing its use. It lives in `docs/docs/integrations` directory.
|
2. An example notebook showing its use. It lives in `docs/docs/integrations` directory.
|
||||||
|
|
||||||
- [ ] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. **We will not consider a PR unless these three are passing in CI.** See [contribution guidelines](https://python.langchain.com/docs/contributing/) for more.
|
- [ ] **Lint and test**: Run `make format`, `make lint` and `make unit_test` from the root of the package(s) you've modified. **We will not consider a PR unless these three are passing in CI.** See [contribution guidelines](https://python.langchain.com/docs/contributing/) for more.
|
||||||
|
|
||||||
Additional guidelines:
|
Additional guidelines:
|
||||||
|
|
||||||
|
2
.github/copilot-instructions.md
vendored
2
.github/copilot-instructions.md
vendored
@ -239,7 +239,7 @@ uv lock
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run unit tests (no network)
|
# Run unit tests (no network)
|
||||||
make test
|
make unit_test
|
||||||
|
|
||||||
# Don't run integration tests, as API keys must be set
|
# Don't run integration tests, as API keys must be set
|
||||||
|
|
||||||
|
4
.github/workflows/_test.yml
vendored
4
.github/workflows/_test.yml
vendored
@ -46,7 +46,7 @@ jobs:
|
|||||||
- name: '🧪 Run Core Unit Tests'
|
- name: '🧪 Run Core Unit Tests'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make test
|
make unit_test
|
||||||
|
|
||||||
- name: '🔍 Calculate Minimum Dependency Versions'
|
- name: '🔍 Calculate Minimum Dependency Versions'
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
@ -79,4 +79,4 @@ jobs:
|
|||||||
# grep will exit non-zero if the target message isn't found,
|
# grep will exit non-zero if the target message isn't found,
|
||||||
# and `set -e` above will cause the step to fail.
|
# and `set -e` above will cause the step to fail.
|
||||||
echo "$STATUS" | grep 'nothing to commit, working tree clean'
|
echo "$STATUS" | grep 'nothing to commit, working tree clean'
|
||||||
|
|
||||||
|
4
.github/workflows/_test_pydantic.yml
vendored
4
.github/workflows/_test_pydantic.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
|||||||
- name: '🧪 Run Core Tests'
|
- name: '🧪 Run Core Tests'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make test
|
make unit_test
|
||||||
|
|
||||||
- name: '🧹 Verify Clean Working Directory'
|
- name: '🧹 Verify Clean Working Directory'
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -64,4 +64,4 @@ jobs:
|
|||||||
|
|
||||||
# grep will exit non-zero if the target message isn't found,
|
# grep will exit non-zero if the target message isn't found,
|
||||||
# and `set -e` above will cause the step to fail.
|
# and `set -e` above will cause the step to fail.
|
||||||
echo "$STATUS" | grep 'nothing to commit, working tree clean'
|
echo "$STATUS" | grep 'nothing to commit, working tree clean'
|
||||||
|
@ -48,7 +48,7 @@ uv sync
|
|||||||
Then verify dependency installation:
|
Then verify dependency installation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make test
|
make unit_test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
@ -61,7 +61,7 @@ If you add new logic, please add a unit test.
|
|||||||
To run unit tests:
|
To run unit tests:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make test
|
make unit_test
|
||||||
```
|
```
|
||||||
|
|
||||||
There are also [integration tests and code-coverage](../testing.mdx) available.
|
There are also [integration tests and code-coverage](../testing.mdx) available.
|
||||||
@ -72,7 +72,7 @@ If you are only developing `langchain_core`, you can simply install the dependen
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd libs/core
|
cd libs/core
|
||||||
make test
|
make unit_test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Formatting and linting
|
## Formatting and linting
|
||||||
|
@ -24,13 +24,13 @@ poetry install --with test
|
|||||||
To run unit tests:
|
To run unit tests:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make test
|
make unit_test
|
||||||
```
|
```
|
||||||
|
|
||||||
To run a specific test:
|
To run a specific test:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
TEST_FILE=tests/unit_tests/test_imports.py make test
|
TEST_FILE=tests/unit_tests/test_imports.py make unit_test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Integration tests
|
## Integration tests
|
||||||
|
Loading…
Reference in New Issue
Block a user