Skip to content

Commit 33a85e8

Browse files
authored
Merge pull request #2 from json-logic/Test-Suite-Enhancements-
Additional test cases
2 parents be63772 + 712f0d4 commit 33a85e8

35 files changed

+10464
-320
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
debug/
22
target/
33
.DS_Store
4+
venv/

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1-
# Test Results Comparison
1+
# JSON Logic Compatibility Tables
22

3-
https://json-logic.github.io/compat-tables/
3+
This repository contains compatibility test results for various JSON Logic implementations across different programming languages.
4+
5+
View the compatibility matrix: https://json-logic.github.io/compat-tables/
6+
7+
## Running the Tests
8+
9+
The test results are stored in the `results` directory as JSON files, one for each language implementation.
10+
11+
## Generating the Report
12+
13+
To generate the HTML compatibility report:
14+
15+
1. Create a virtual environment:
16+
```bash
17+
python3 -m venv venv
18+
source venv/bin/activate # On Windows: venv\Scripts\activate
19+
```
20+
21+
2. Install the dependencies:
22+
```bash
23+
pip install -r requirements.txt
24+
```
25+
26+
3. Run the report generation script:
27+
```bash
28+
python reports/report.py
29+
```
30+
31+
4. The report will be generated in the `docs` directory as `index.html`.
32+
33+
## Report Structure
34+
35+
The report shows a compatibility matrix of different JSON Logic implementations across various programming languages. Each cell shows the number of tests passed for a particular test suite and implementation.
36+
37+
The color coding indicates:
38+
- 🟢 Green: 100% of tests passed
39+
- 🟡 Yellow: Some tests passed
40+
- 🟠 Orange: No tests passed
41+
- ⚪ Gray: Not applicable/not implemented

docs/index.html

Lines changed: 5964 additions & 72 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)