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
f7826a7667
Added tests to cover missing lines in out_pdf_pcb_print.py
2021-02-01 15:51:04 -03:00
Salvador E. Tropea
c67965c91b
Excluded KiCad 6 code in main from coverage.
2021-02-01 15:26:08 -03:00
Salvador E. Tropea
86f21ff08c
Fixed path to makefile test.
2021-02-01 15:06:30 -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
e3766519ac
Added test for the warning about filenames with $.
2021-02-01 14:53:38 -03:00
Salvador E. Tropea
76db8a65e4
Removed KiCad 6 code from coverage.
2021-02-01 14:52:52 -03:00
Salvador E. Tropea
003fa15715
Support for mcpyrate macros deactivation.
2021-02-01 14:51:42 -03:00
Salvador E. Tropea
248ce56d35
Merge pull request #46 from INTI-CMNB/pytest6
...
Pytest 6 support
2021-02-01 11:49:21 -03:00
Salvador E. Tropea
755ec4aa76
Fixed test_yaml_errors, wasn't adapted to the new fixture.
2021-02-01 11:35:48 -03:00
Salvador E. Tropea
01131bfc64
Fixed flake8 issues (indentation and obsolete request)
2021-02-01 11:28:11 -03:00
Salvador E. Tropea
7413f12924
Added missing test file `tests/test_plot/fake_plugin/out_bogus.py`
2021-02-01 11:23:41 -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
af29f802c0
Switched from configfile.readfp to configfile.read_file for Python 3
2021-02-01 11:14:57 -03:00
Salvador E. Tropea
7bf0f90134
Updated mcpyrate.
...
The old one didn't work with Pytest 6.0.2.
2021-02-01 11:13:52 -03:00
Salvador E. Tropea
7422e9726c
Removed some "no cover" comments, clasified the rest
2021-02-01 08:53:24 -03:00
Salvador E. Tropea
8492786dcc
Trying to get better coverage report.
2021-01-29 15:50:53 -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
Salvador E. Tropea
b271caf145
Added tests for no get_targets implementation and deps fallback.
2021-01-29 12:38:20 -03:00
Salvador E. Tropea
d9986b0599
Added PCBDraw case to the makefile test.
2021-01-29 12:22:31 -03:00
Salvador E. Tropea
55c988bb66
Added test for KiCad < 5.1.6
2021-01-29 12:15:46 -03:00
Salvador E. Tropea
e6163ae5aa
Added drill case to makefile test.
2021-01-29 11:54:09 -03:00
Salvador E. Tropea
adc181f1b2
Fixed drill dependencies generation.
2021-01-29 11:53:41 -03:00
Salvador E. Tropea
4466277bde
Added KiBoM case to the makefile test.
2021-01-29 11:24:51 -03:00
Salvador E. Tropea
f28b7a56b8
Changed the error about using external (unknown) names to a warning.
2021-01-29 11:23:46 -03:00
Salvador E. Tropea
2764e087e8
Fixed makefile generation of incomplete targets.
2021-01-29 11:23:09 -03:00
Salvador E. Tropea
c64fb3871c
Added test for STEP file in makefile
2021-01-29 10:37:05 -03:00
Salvador E. Tropea
d20d7e5d5c
Fixed STEP dependencies generation.
2021-01-29 10:36:33 -03:00
Salvador E. Tropea
54febcae44
Added comments and no target pre-flights to the makefile test.
2021-01-29 09:34:46 -03:00
Salvador E. Tropea
51aeb5be32
Added test for run_erc in makefile.
2021-01-29 09:27:02 -03:00
Salvador E. Tropea
0dbb180cb7
Fixed run_erc and run_drc makefile targets.
...
When the schematic and board aren't loaded.
2021-01-29 09:25:56 -03:00
Salvador E. Tropea
6965d73c4e
Added test for ibom in makefile
2021-01-29 09:07:17 -03:00
Salvador E. Tropea
f29c0c5361
Added more test for compress output.
2021-01-29 08:46:23 -03:00
Salvador E. Tropea
89eedf1d3b
Disabled rar error message test.
2021-01-28 17:47:42 -03:00
Salvador E. Tropea
37eefac973
Added tests for some ouyt_compress special cases.
...
- No rar
- rar fails
- rar file exists
- Empty output
2021-01-28 17:33:01 -03:00
Salvador E. Tropea
9a446c0a91
Added extra debug to one gerber test.
2021-01-28 15:51:10 -03:00
Salvador E. Tropea
8299ed5d96
Added tests for the new options to control protel extensions.
2021-01-28 15:38:19 -03:00
Salvador E. Tropea
c31c2c17c2
Removed trailing spaces (flake8)
2021-01-28 15:37:44 -03:00
Salvador E. Tropea
c6ad93dc78
Added clarification about the need of dot in edge_cut_extension option.
2021-01-28 15:37:28 -03:00
Salvador E. Tropea
84470bbc11
Added first makefile generation test
2021-01-28 12:43:01 -03:00
Salvador E. Tropea
c4c33af680
Added some compress tests.
...
Covers zip, tr.bz2 and rar creation for internal BoM, position and
gerber files.
2021-01-27 16:12:46 -03:00
Salvador E. Tropea
d422d380af
Commented out unused code in ansi.py
2021-01-27 15:07:51 -03:00
Salvador E. Tropea
eea93ea8ec
Improved rotation filter coverage
...
- Check errors
- Try extra debug
2021-01-27 13:35:37 -03:00
Salvador E. Tropea
bb5ab6119a
Fixed extra NL at the end of file (flake8)
2021-01-27 13:34:52 -03:00
Salvador E. Tropea
ce387ac423
Added test for missing colorama module.
2021-01-27 12:55:19 -03:00
Salvador E. Tropea
01459ce85e
Added tests for merged BoMs for HTML, XML and XLSX formats.
2021-01-27 12:22:03 -03:00
Salvador E. Tropea
f279e7319e
Added test for a BoM from multiple projects.
2021-01-27 11:51:26 -03:00
Salvador E. Tropea
2acc6c268d
Fixed range reference generation for multiple projects
2021-01-27 11:50:10 -03:00
Salvador E. Tropea
bb3b9c008b
Sorted the `Source BoM` column
2021-01-27 11:48:19 -03:00