Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix, --trailing-commas]
args: [--autofix, --trailing-commas, --no-sort]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
Expand Down
192 changes: 0 additions & 192 deletions docs/Makefile

This file was deleted.

7 changes: 7 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This rule is here to avoid the scrollbar appearing when this
* is not hosted on ReadTheDocs
*/
#rtd-footer-container {
display: none;
}
32 changes: 32 additions & 0 deletions docs/conda-solver-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Conda solver tests

The solver tests are expressed in yaml files.
The formal json schema can be seen [here](test-schema)
Each yaml file has a top-level `tests` entry, under which a list of individual tests follows.
Each test can take one of four possible forms, targeting four different aspects of the solver interface.
All tests share some common structure, such as general identifying information, and solver configuration like used channels and the prior state of the environment.
Additionally, each type of test has its own test information, such as the expected final solution for solver tests, or the expected error condition for unsatisfiable requests.

## Common test structure

All tests share the following fields:

:::{table} Common test definition fields
|field|description|
|-|-|
|name|a descriptive name, often derived from the originating test function name|
|id|a unique id composed of a single letter and a three digit number for easy reference|
|provenance|information about the provenance of this test, usually referring to a prior test in another code base|
|kind|one of the four possible test types: `solve`, `solve_for_diff`, `unsatisfiable`, or `determine_constricting_specs`|
|input|the general test input as described below|
:::

:::{table} Test input
|field|description|
|-|-|
|specs_to_add|a list of `MatchSpecs` that should be added to the environment|
|prefix|a list of packages that are installed in the environment prior to the solving|
|history_specs|a list of `MatchSpecs` that were installed previously|
|add_pip|whether to add pip as an automatic dependency|
|
:::
Loading
Loading