Skip to content

test: add source schema export tests#573

Open
64johnlee wants to merge 34 commits into
tscircuit:mainfrom
64johnlee:test/add-source-tests
Open

test: add source schema export tests#573
64johnlee wants to merge 34 commits into
tscircuit:mainfrom
64johnlee:test/add-source-tests

Conversation

@64johnlee
Copy link
Copy Markdown

@64johnlee 64johnlee commented Apr 30, 2026

Test Coverage for circuit-json source schemas

252 tests (was 216, +36 new)

21 source schemas tested across 20 test files:

Schema Tests
source_simple_resistor 3
source_simple_capacitor 3
source_simple_diode 1
source_simple_led 1
source_simple_fuse 2
source_simple_transistor 2
source_simple_power_source 2
source_simple_voltage_source 2
source_simple_current_source 2
source_simple_pin_header 3
source_simple_potentiometer 2
source_simple_resonator 2
source_simple_test_point 1
source_simple_voltage_probe 1
source_simple_switch 1
source_simple_push_button 1
source_simple_oscillator 1
source_net 1
source_trace 2
source_component_internal_connection 1
source_project_metadata 1

All 252 tests passing

64johnlee added 9 commits May 1, 2026 06:44
First test for circuit-json.
9 source schemas tested:
- source_simple_resistor (3 tests)
- source_simple_capacitor (3 tests)
- source_simple_diode (1 test)
- source_simple_led (1 test)
- source_simple_fuse (2 tests)
- source_simple_transistor (2 tests)
- source_simple_power_source (2 tests)
- source_simple_voltage_source (2 tests)
- source_simple_current_source (2 tests)

Total: 18 new tests.
+12 more tests for source schemas.

All circuit-json tests passing.
+4 new tests (source_trace, source_component_internal_connection, source_project_metadata)

All 252 circuit-json tests pass.
+6 tests.

All 258 circuit-json tests pass.
+4 more tests.

All 262 circuit-json tests pass.
+10 more schemas tested.

All 272 circuit-json tests pass.
source_simple_chip, crystal, fiducial, ground, mosfet, port, connector, op_amp, battery, inductor

All 282 circuit-json tests pass.
@64johnlee
Copy link
Copy Markdown
Author

Hi @seveibar - PR #573 is ready to merge (all checks passed, no conflicts). This adds 36 new tests for source schema coverage. Could you merge it when you get a chance? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant