summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
Commit message (Collapse)AuthorAgeFilesLines
* test: adapt to latest pylintNed Batchelder2023-02-091-3/+3
|
* fix: isolate user code from coverage.py internal code flags. #1524Ned Batchelder2023-01-091-1/+1
|
* style: use good style for annotated defaults parametersNed Batchelder2023-01-051-10/+10
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* mypy: test_debug.py test_execfile.py test_filereporter.py test_files.pyNed Batchelder2023-01-041-5/+5
|
* refactor: a better way to filter `coverage debug pybehave`Ned Batchelder2023-01-011-0/+6
|
* mypy: add cmdline.py and test_cmdline.pyNed Batchelder2022-12-311-72/+104
|
* refactor: removed mentions of Jython and IronPythonNed Batchelder2022-12-301-2/+0
|
* fix: only accept known values for --formatNed Batchelder2022-11-061-0/+5
|
* refactor: use `format` wherever we canNed Batchelder2022-11-051-2/+2
|
* feat: report terminal output in Markdown Table format #1418 (#1479)stepeos2022-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactoring normal reporting text output * implemented markdown feature from #1418 * minor changes * fixed text output * fixed precision for text and markdown report format * minor changes * finished testing for markdown format feature * fixed testing outside test_summary.py * removed fixed-length widespace padding for tests * removed whitespaces * refactoring, fixing docs, rewriting cmd args * fixing code quality * implementing requested changes * doc fix * test: add another test of correct report formatting * fixed precision printing test * style: adjust the formatting Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* test: add a test for some uncovered lines in cmdline.pyNed Batchelder2022-05-231-0/+6
|
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-6/+6
|
* style: remove pylint exclusions only needed for 2/3Ned Batchelder2022-02-201-1/+1
|
* test: nicer way to test debug=pybehaveNed Batchelder2022-02-061-3/+4
|
* debug: pybehave is now an option on `coverage debug`Ned Batchelder2022-02-061-1/+11
|
* test: update --precision & --fail-under tests to really test the fix from #1317Ned Batchelder2022-02-011-38/+51
|
* fix: use --precision argument when checking --fail-under (#1317)Marcelo Trylesinski2022-02-011-0/+3
| | | | | | | | | | | | | * build: windows 3.11.0a4 started failing to save the pip cache * Fix precision argument when using cmd * Remove print * Remove isort things * last isort... Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* feat: use --data-file to configure the coverage databaseNikita Bloshchanevich2022-01-251-0/+25
|
* feat: add "lcov" command for generating LCOV reportsBradley Burns2022-01-221-18/+73
| | | | | | | * Add LCOV functionality into coverage.py * Add testing for the LCOV reporter * Add documentation for the LCOV reporter
* feat: multiple --concurrency values. #1012 #1082nedbat/multi-concurrencyNed Batchelder2021-11-251-15/+11
|
* refactor(test): make_data_file is a helper for making data filesNed Batchelder2021-11-201-15/+10
|
* docs: document the exceptionsNed Batchelder2021-11-141-2/+2
| | | | ... and make some of them private.
* test: add a test of `coverage debug premain`Ned Batchelder2021-11-131-0/+15
|
* debug: the `coverage debug` command no longer accepts multiple topicsNed Batchelder2021-11-131-3/+7
|
* feat: 'debug data' now enumerates combinable files alsoNed Batchelder2021-11-131-9/+31
|
* refactor: add_lines only needs an iterable of intsNed Batchelder2021-11-131-2/+2
| | | | | The old code expected a dict with int keys, but iterables are simpler, so get rid of a lot of dict.fromkeys() nonsense.
* refactor(test): use the expected name for initializing tests.Ned Batchelder2021-11-071-2/+2
| | | | | | | | | Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better.
* refactor(test): make traceback checks a bit flexibleNed Batchelder2021-11-041-4/+5
| | | | | | | | | | | | Python 3.11 made a traceback look like this: Traceback (most recent call last): File "{path}", line 8, in <module> print(sys.argv[1]) ~~~~~~~~^^^ IndexError: list index out of range We needed to not care if that tilde-caret line was present or not.
* feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashqNed Batchelder2021-10-261-0/+41
|
* refactor: alphabetize the optionsNed Batchelder2021-10-261-53/+53
|
* refactor(test): os_sep and remove_tree helpersNed Batchelder2021-10-241-3/+3
|
* feat: HTML report now says where the report is. #1195 (#1207)Ned Batchelder2021-08-051-1/+1
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-11/+11
|
* refactor: remove unused test class settingNed Batchelder2021-03-111-1/+0
| | | | | | | | | unittest_mixins would check that files got created if a test made a temporary directory, so that we could trim down making temp dirs needlessly. But we don't use unittest_mixins any more, so this setting does nothing. Remove it.
* test: reduce use of unittestNed Batchelder2021-03-111-2/+2
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-4/+2
|
* refactor: remove reliance on unittest_mixins.StdStreamCapturingMixinNed Batchelder2021-02-021-4/+6
| | | | This is another step toward removing unittest.TestCase as a base class.
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-4/+3
|
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-54/+50
| | | | One step of moving to pure pytest tests.
* Add combine --keep (#1110)Éric Larivière2021-01-301-5/+5
| | | | | | | | | | | * Add combine --keep Related to https://github.com/nedbat/coveragepy/issues/1108 * Fix unit tests * Fix line too long * Fix line too long
* More bitbucket->github urlsNed Batchelder2020-08-181-1/+1
|
* CmdLineStdoutTest::test_cmd_help: test for at least 20 lines (#1013)latricewilgus2020-07-191-1/+1
| | | | | | | | | The number of lines in the help output of a command depends on the terminal size. The smaller the more line breaks. The minimum number of lines for the current help message is 23. Currently we are checking for at least 30 lines, yielding to failures on large terminals. Reduce the number (currently 30) to 20 to have some leeway for the future.
* Report descending sort option (#1005)Jerin Peter George2020-07-031-0/+6
| | | | | | | | | | | | | | | * added descending sort option in coverage report * commandline option for report sort added * Fix tests for pull #1005 * conditional statements improved * sort option help updated with choices * commandline test for sort added Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* --skip-empty now applies to the XML report also. #976nedbat/bug976Ned Batchelder2020-06-301-1/+1
|
* Simplify testing of --no-skip-covered, and add docsNed Batchelder2020-06-291-0/+10
|
* Make the bare help message a bit more helpfulNed Batchelder2020-05-171-1/+1
|
* Finish up --precisionNed Batchelder2020-05-121-3/+13
|
* "coverage debug premain"Ned Batchelder2020-01-111-1/+1
|