Generate an HTML report for line_parser
Project description
Utilisation dans les tests unitaires :
A ajouter a un test unittaire unittest, et à lancer avec $ coverage run -m unittest test_str.py
Dans :
[...]
import html_report_line_profiler as hr
class Test_CeciEstUnTest(unittest.TestCase):
def setUp(self):
# Code execute avant chaque test
[...] # ce que l'on veut
# Profiler :
self.profiler, self.delete_profiling_env = hr.setUp_profiler(castList)
#endDef
# ...
def tearDown(self):
# Code executé après chaque test
# Terminer le profiler en premier
# Create basename
hr.proffile_basename = classname2basename(
file_name = __file__,
class_name = self.__class__.__name__,
method_name = self._testMethodName
)
# Launch the profiler out
hr.tearDown_profiler(
profiler=self.profiler,
proffile_basename=proffile_basename,
output_folder=output_folder,
delete_profiling_env=self.delete_profiling_env
)
#
# [...] # Les autres commandes
#endDef
#endClass
Rapport HTML
Pour lancer ensuite le post-traitement (rapport html) :
$ profiler_html_report.py
Remarques
-d = --input-dir
(default : './profile')-o = --output-dir
(default : './profile_html')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file html_report_line_profiler-0.1.0.tar.gz
.
File metadata
- Download URL: html_report_line_profiler-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6a682ede5d1acaea516d6f17bf3fb95c64b20fd171d88200ab9f0154756f0b |
|
MD5 | 54f6b7782071a61b866ab543bcfa24d3 |
|
BLAKE2b-256 | 881878a8788789d043757feb94c1259f28367e658a7a6959b67e0df0f41bce2e |
File details
Details for the file html_report_line_profiler-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: html_report_line_profiler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0def26f60f77a32b32018ed2feeb5b2ebe6ae4538a2cc587000afe87cb2fb82 |
|
MD5 | 8c4230e0c3dcd33f2f06d7d3769c879e |
|
BLAKE2b-256 | 07ae85ea5d591d2b2f03515e875fca813cfd74780aaeff89bb6de7dde9aa744e |