summaryrefslogtreecommitdiff
path: root/tests/test_debug.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Move lots of initing to _init, so we can tweak settings before starting.Ned Batchelder2014-10-101-1/+2
|
* Mark a bunch of tests that don't need temp directories.Ned Batchelder2013-09-281-0/+2
|
* Tests for debug tracing features.Ned Batchelder2013-09-121-0/+88
|
* More --debug options, split code into separate objects.Ned Batchelder2013-09-081-0/+25