summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Optionally skip empty files in reportsreybog902019-11-011-1/+8
|
* Upgrade pylintNed Batchelder2019-10-181-1/+1
|
* Create a JSON reportMatt Bachmann2019-08-311-14/+80
|
* Fix a test.Stephan Richter2019-06-101-1/+1
|
* Pass the contexts to the report command.Albertas Agejevas2019-06-101-2/+9
|
* Don't name new method the same as old attributeNed Batchelder2019-04-201-2/+2
|
* Fix #708: .filename is private, and don't combine over ourselvesNed Batchelder2019-04-151-2/+2
|
* Use a function instead of a method to show helpNed Batchelder2018-11-261-10/+9
|
* PyRunner knows how to run Python files.Ned Batchelder2018-11-251-29/+58
| | | | Adjust sys.path to better emulate Python, but only if we should.
* Use implicit mock patching instead of explicit DI for cmdline testsNed Batchelder2018-11-251-280/+288
| | | | | This sets us up for mocking more or different globals without adding more explicit DI overrides in cmdline.py.
* Always include a documentation link at the end of help messagesNed Batchelder2018-10-211-6/+14
|
* One more error case for the command lineNed Batchelder2018-10-191-3/+17
|
* `[run] command_line` is the command line to use for 'coverage run'. #695Ned Batchelder2018-10-181-4/+43
|
* This is literally what setdefault is forNed Batchelder2018-10-181-2/+1
|
* Even more clarity for an error messageNed Batchelder2018-09-251-0/+4
|
* Merge branch 'nedbat/contexts'Ned Batchelder2018-09-211-1/+1
|\
| * Plumb through context= settingNed Batchelder2018-09-181-1/+1
| |
* | Clarify an error messageNed Batchelder2018-09-191-1/+1
|/
* Better sys_info: pid, and a more understandable name.Ned Batchelder2018-08-261-1/+1
|
* Simplify how run --append works.Ned Batchelder2018-08-091-11/+7
| | | | | I don't know why it was using combine after, when .load before seems like the obvious way to do it.