Skip to content
Closed
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
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,28 @@ IVOA registry validator: OAI-PMH harvest checks, IVOA four-GET profile, VOResour

Web UI colors and typography follow [ivoa.net](https://ivoa.net); design tokens live in [`assets/static/css/ivoa-theme.css`](assets/static/css/ivoa-theme.css).

## Tests

Run the tests locally:

Environment setup:

```bash
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
source .venv/bin/activate
```

Execute tests:

```bash
pytest
```

## Run

Environment setup:

```bash
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
Expand Down Expand Up @@ -141,14 +161,6 @@ OAI responses are validated in two steps: embedded `description` / `metadata` /

**Developer guide:** [docs/schemas-and-validation-assets.md](docs/schemas-and-validation-assets.md) — directory layout, bundle composition, namespace table, XSLT assets (`assets/validate/`), standards catalog (`assets/standards/`), and how each validation phase uses them.

## Tests

After installing with `.[dev]` (see **Run** above):

```bash
pytest
```

On Debian/Ubuntu, install system libraries for `lxml` if needed: `apt-get install libxml2 libxslt1.1`.

## Docker
Expand Down
3 changes: 2 additions & 1 deletion assets/static/css/validator.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@
}
.val-test { margin: 0.3rem 0; padding: 0.35rem 0.45rem; border-radius: 6px; }
.val-test--pass { color: var(--muted); }
.val-test--warn { background: var(--warn-bg); }
.val-test--warn { background: var(--warn-bg); border-left: 3px solid var(--warn-border); }
.val-test--rec { background: var(--accent-soft); border-left: 3px solid var(--accent-border); }
.val-test--fail { background: #fdeeee; border-left: 3px solid #c53030; }
.val-test-item { font-size: 0.85em; margin-right: 0.35rem; }
.val-ignored-note {
Expand Down
1 change: 1 addition & 0 deletions assets/validate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Default **`ASSETS_ROOT`**: XSLT 1.0 stylesheets for IVOA registry rules beyond X
|------|------|
| `checkIVOAOAI.xsl` | IVOA harvest profile tests on OAI GET responses (phase 2) |
| `checkVOResource.xsl` | VOResource constraint tests on harvested records (phase 3) |
| `testsVOResource-v1_0.xsl` | Imported test templates used by `checkVOResource.xsl` and `checkIVOAOAI.xsl` |
| `validationCommon.xsl` | Shared helpers (imported by the check stylesheets) |

Full context: [`docs/schemas-and-validation-assets.md`](../../docs/schemas-and-validation-assets.md).
Loading
Loading