summaryrefslogtreecommitdiff
path: root/tests/test_debug.py
Commit message (Collapse)AuthorAgeFilesLines
* test: more tests of debug output controlNed Batchelder2023-01-221-3/+12
|
* feat: the debug output file can be specified in the config file. #1319Ned Batchelder2023-01-221-13/+53
|
* 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-22/+28
|
* test: nicer way to test debug=pybehaveNed Batchelder2022-02-061-2/+3
|
* debug: pybehave is now an option on `coverage debug`Ned Batchelder2022-02-061-0/+9
|
* refactor: out_lines was a bad name for a multi-line string.Ned Batchelder2022-02-061-22/+21
|
* test: include lock debugging in the debug_callers testNed Batchelder2022-02-031-1/+1
|
* style: convert more string formatting to f-stringsNed Batchelder2021-11-111-4/+4
|
* refactor(test): make re_lines (et al) look like re.searchNed Batchelder2021-10-281-17/+12
| | | | and also replace some calls with just-plain re.search.
* refactor(test): re_lines is more useful if it returns a listNed Batchelder2021-10-271-6/+6
|
* refactor: don't need this printNed Batchelder2021-10-091-1/+0
|
* fix: use more explicit names for some debug informationNed Batchelder2021-06-021-1/+1
|
* test: traced file names seem to be absolute now? #1161Ned Batchelder2021-05-081-2/+4
| | | | | This was changed in 3.10.0b1 and 3.9.5. Seems like a strange change to throw into 3.9.5, but there it is. Fixes #1161.
* refactor: remove unneeded backward.py shimsNed Batchelder2021-05-011-2/+2
| | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib
* fix: don't measure third-party packagesNed Batchelder2021-04-101-2/+3
| | | | | | | | | | | | Avoid measuring code located where third-party packages get installed. We have to take care to measure --source code even if it is installed in a third-party location. This also fixes #905, coverage generating warnings about coverage being imported when it will be measured. https://github.com/nedbat/coveragepy/issues/876 https://github.com/nedbat/coveragepy/issues/905
* refactor: make all coverage.env uses uniformNed Batchelder2021-02-071-2/+2
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-6/+4
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+1
|
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-29/+26
| | | | One step of moving to pure pytest tests.
* Use a fixed width for info labelsNed Batchelder2019-12-291-11/+21
| | | | | It makes it look nicer when using --debug=config,sys and it makes it easier to compare output between two different versions.
* Log some indication of the script being executedNed Batchelder2019-09-021-0/+9
|
* Make callers debug output easier to use as editor launchesNed Batchelder2019-09-011-3/+3
|
* Remove the JSON data codeNed Batchelder2019-07-101-7/+2
|
* Avoid useless or redundant db operations. Faster.Ned Batchelder2019-07-071-4/+6
| | | | | | Moving operations into the "with self._connect" means less opening and closing of the database. Returning early if there is no data to write avoids writing empty contexts.
* Asserts should be expected,actualNed Batchelder2018-12-241-1/+1
|
* Defer using the database when calling set_context #716Ned Batchelder2018-10-141-2/+2
| | | | | | | | | | | The collector calls set_context() before any code is run. If we touch the database there, it will get created *very* early. This causes problems with pytest-cov, which will delete those early-created files when erasing data. By deferring the database access until add_lines is called, the data file stays off the disk until the collection is done (or until the context switches), which avoids the problem.
* measured_contexts() and two simple tests of the global contextNed Batchelder2018-09-211-2/+2
|
* Put back an always-on indication of the tracer availableNed Batchelder2018-08-301-2/+13
|
* Better sys_info: pid, and a more understandable name.Ned Batchelder2018-08-261-2/+2
|
* Be flexible, and accept either json-sourced or sql-source error messages in ↵Ned Batchelder2018-08-241-4/+9
| | | | some tests
* Make file operations implicit on constructed filenameNed Batchelder2018-07-231-2/+2
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Slight refactor of how we look for configuration filesNed Batchelder2018-03-191-2/+2
|
* * --source and --include are mutually exclusive (take 2) #265loic@dachary.org2017-01-071-1/+2
| | | | | close #265 close #101
* Pids can be less that 5 digitsNed Batchelder2017-03-231-1/+1
|
* Big refactor of debug loggingNed Batchelder2017-03-221-20/+30
|
* Sometimes we match against files, sometimes directories.Ned Batchelder2017-02-211-1/+1
| | | | Also, skip our own test code when running tests.
* Add tests for short_id, and pytest-ize an existing oneNed Batchelder2017-01-021-10/+20
|
* Pids can be fewer than 5 digitsNed Batchelder2016-09-241-2/+2
|
* Change the debug=callers test to something that will be coverableNed Batchelder2016-09-241-12/+15
|
* Clean up and test the callers debugging infoNed Batchelder2016-09-241-0/+13
|
* Test short_stack, and give it a skip parameter for better output.Ned Batchelder2016-09-241-1/+36
|
* Use the new class nameNed Batchelder2015-07-271-1/+1
|
* Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|
* Use PyContracts so we can declare/enforce parameter and return types.Ned Batchelder2015-05-171-1/+1
| | | | | This commit doesn't add any uses of PyContracts, but gets the machinery in place.
* Make the two forms of debug output more uniformNed Batchelder2015-01-241-1/+11
|
* info_formatter shouldn't assume it gets a listNed Batchelder2015-01-241-0/+4
|
* Comment was missing a wordNed Batchelder2015-01-191-1/+1
|
* Allow the --debug switch on any commandNed Batchelder2014-10-261-1/+5
|