Commit Graph

46 Commits

Author SHA1 Message Date
Salvador E. Tropea 0ddc02c51d [Electro-grammar][Fixed] Problems with floating point tolerances
- i.e. 0.1%
Fixes #447
2023-05-29 10:09:05 -03:00
Salvador E. Tropea 43a2bea49d [Tests] Separated independent tests
- Tests that doesn't depend on the KiCad version
- So they aren't run 6, 8 or even more times
- Hopefuly will reduce download issues in dep tests
2023-04-18 07:31:42 -03:00
Salvador E. Tropea 69c2890a10 [Tests] Added for the last grammar changes 2023-03-31 10:47:33 -03:00
Salvador E. Tropea 158f267eb5 Support for extra data in the Value field
- Currently we just use the tolerance for the 3D resistors
- Uses a port of the JavaScript Electro-Grammar
2023-03-30 12:39:36 -03:00
Salvador E. Tropea e125ed95e0 [Tests] Patched GS.exec_with_retry 2023-01-03 12:38:53 -03:00
Salvador E. Tropea 32325d4a7d [Tests] Adapted to the new exec_with_retry behavior 2023-01-03 10:34:17 -03:00
Salvador E. Tropea bb6b0c6141 [PcbDraw] Replaced `unit` code
- So we have only one units conversion
- I think the only difference is that KiBot code currently supports
  the locales decimal point
2022-10-18 09:57:56 -03:00
Salvador E. Tropea 420757880f Adapted the tests for missing tools to the new mechanism 2022-07-05 13:49:01 -03:00
Salvador E. Tropea 0a8481dadf Now the dependencies are YAML specs in docstrings
- They document the dependencies and constructs them
2022-07-05 12:43:49 -03:00
Salvador E. Tropea 29afcdd453 Fixed problems with the test_ibom_parse_fail test
- Needs to avoid iBoM using X server
- Python 3.7 optional parameter to the mocked function wasn't implemented
2022-06-30 11:38:22 -03:00
Salvador E. Tropea 59d6d2caac [Dependencies] Added auto-download for iBoM 2022-06-30 10:03:26 -03:00
Salvador E. Tropea 65d4143ec1 Now we try to download some tools when missing
- Currently only a few targets are available
- Rar, ImageMagick, RSVG Tools and git have some support
2022-06-19 19:17:38 -03:00
Salvador E. Tropea 3a5042ea96 Simplified the tests 2022-06-10 19:55:13 -03:00
Salvador E. Tropea e15f18de2c Simplified the tests initialization
- Now output dirs are named after the test function
2022-06-10 14:01:56 -03:00
Salvador E. Tropea 6281a40335 Fixed spelling 2022-02-16 19:56:04 -03:00
Salvador E. Tropea ccbb8a6060 Adapted two tests to the new details
- New pcbnew import in gs.py
- New return value for _get_columns()
2022-02-14 14:49:16 -03:00
Diego Capusotto 0795b2d8f3 Adapted test_misc_2.py to v6 details 2021-12-17 17:22:18 -03:00
Salvador E. Tropea 130f7b25a3 Fixed tests that now needs to initialize global defaults. 2021-12-01 15:55:38 -03:00
Salvador E. Tropea 1b48e614a7 Added pattern expansion in the `dir` option for outputs
Closes #58
2021-03-12 21:14:39 -03:00
Salvador E. Tropea eab8550c11 Fixed makefiles tests.
Introduced by 4f73de1157
2021-03-12 15:05:24 -03:00
Salvador E. Tropea 32310ba1fa Added test for makefile generation running the script from system. 2021-02-12 14:56:51 -03:00
Salvador E. Tropea ab8d3b4823 Added test for layer without _id (str convertion) 2021-02-12 14:37:14 -03:00
Salvador E. Tropea 85c5db268e Added comments about caplog bugs in the pytest using for the docker image. 2021-02-12 14:30:35 -03:00
Salvador E. Tropea c1499479dc Removing part of test_search_as_plugin_ok
The caplog is failing on github docker image for this test.
2021-02-12 13:29:56 -03:00
Salvador E. Tropea d5a1df9eb7 Modified test suite to collect the error in test_search_as_plugin_ok 2021-02-12 13:10:22 -03:00
Salvador E. Tropea 61855a2d8c Added tests for debug details in generated makefiles. 2021-02-12 12:30:20 -03:00
Salvador E. Tropea f698e44642 Now we can load InteractiveHtmlBom even when installed only as plugin
Fixes #49
2021-02-08 15:37:01 -03:00
Salvador E. Tropea 437f922341 Moved coverage calls, why out_step is wrongly reported? 2021-02-04 16:20:57 -03:00
Salvador E. Tropea 41c667cb1f Added test for unknown prefix in units. 2021-02-04 16:17:34 -03:00
Salvador E. Tropea 047fe53e1d Added tests for step and pdf_pcb_print command fails. 2021-02-04 16:09:50 -03:00
Salvador E. Tropea 0babc286af Modified the tests to cover the missing lines. 2021-02-04 13:40:14 -03:00
Salvador E. Tropea 9f2344ed4a Added tests for macros applied to stuff not currently used. 2021-02-04 13:06:44 -03:00
Salvador E. Tropea 685ab34c56 Added test for bogus argument passed to Layer.solve() 2021-02-04 12:00:17 -03:00
Salvador E. Tropea 2d4f73d822 Fixed interaction between tests testing eeschema_do version 2021-02-03 16:07:36 -03:00
Salvador E. Tropea afaecfe570 Added tests for run_e/drc fails (mocked) 2021-02-03 15:16:42 -03:00
Salvador E. Tropea 323dad144c Added test for no sch loaded in KiBoM output. 2021-02-03 12:47:07 -03:00
Salvador E. Tropea d12837d5ba Added tests for missing out_bom cases.
- No file in aggregate
- Missing file in aggregate
- Sch not loaded
2021-02-03 12:16:55 -03:00
Salvador E. Tropea 56e5352164 Added test for var_rename filter without variant. 2021-02-03 10:40:12 -03:00
Salvador E. Tropea 370b5bdaf6 Added test for run_drc to the makefile test.
- Also test the schematic fallback for preflight deps.
2021-02-03 10:23:15 -03:00
Salvador E. Tropea d5a31c6d87 Added tests for the missing lines in out_ibom.py. 2021-02-01 17:12:40 -03:00
Salvador E. Tropea 10f0706482 Exclude KiCad 6 code and enabled coverage for out_base tests. 2021-02-01 16:39:10 -03:00
Salvador E. Tropea 8b459e85d5 Moved the plug-ins load to the coverage section in the tests.
So we get the re-load protection covered in the reports.
2021-02-01 14:54:13 -03:00
Salvador E. Tropea 01131bfc64 Fixed flake8 issues (indentation and obsolete request) 2021-02-01 11:28:11 -03:00
Salvador E. Tropea 3d5547f6c6 Changed the way we get the target test directory.
- Pytest 6 removed the old global mechanism.
- Now using a `fixture`
2021-02-01 11:16:33 -03:00
Salvador E. Tropea b53ffbb032 Added Python cache creation before running the tests.
It looks like pytest is loading some modules without macros. The cache
gets created without them. But when we load the same modules with
macros it fails.
2021-01-29 15:27:52 -03:00
Salvador E. Tropea d796abde2e Separated some complex tests from the test_misc.
- Moved them test_misc_2
- Refined the tests in test_misc_2 to work together
2021-01-29 13:28:29 -03:00