Increase test coverage by astanin · Pull Request #421 · astanin/python-tabulate · GitHub
Skip to content

Increase test coverage#421

Draft
astanin wants to merge 12 commits into
masterfrom
dev/more-test-coverage
Draft

Increase test coverage#421
astanin wants to merge 12 commits into
masterfrom
dev/more-test-coverage

Conversation

@astanin

@astanin astanin commented Mar 10, 2026

Copy link
Copy Markdown
Owner

Depends on pull request #419 .

astanin added 8 commits March 9, 2026 17:09
fix #173

New CLI parameter:

--headers HEADERS
  where HEADERS can be "firstrow", "keys", "HEADER1,HEADER2,...", "KEY1:HEADER1,KEY2:HEADER2,..."

--read FILEFORMAT
  where FILEFORMAT can be "rsv" (default), "csv", "jsonl"

Deprecated CLI parameter:

--header

Usage examples:

cat ./examples/people.csv | tabulate -r csv --headers firstrow
  id  name    email              "favorite" fruit
----  ------  -----------------  ------------------
   1  Alice   alice@example.com  apple, kiwi
   2  Bob     bob@example.com    banana,
                                 orange,
                                 lychee
   3  Carol                      pear

cat ./examples/people.jsonl | tabulate -r jsonl -f grid --headers 'id:ID,name:First Name,email:Email'
+------+--------------+-------------------+
|   ID | First Name   | Email             |
+======+==============+===================+
|    1 | Alice        | alice@example.com |
+------+--------------+-------------------+
|    2 | Bob          | bob@example.com   |
+------+--------------+-------------------+
- old tests: launch tabulate via subprocess (still necessary)
- new tests: the same checks for coverage reports
@codecov

codecov Bot commented Mar 10, 2026

Copy link
Copy Markdown

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