Skip to main content

Generate an HTML report for line_parser

Project description

Latest Release pipeline status coverage report PEP8-Critical PEP8-NonCritical PEP8-Rate


Downloads Supported Versions


Intro

Crée un rapport HTML (avec une arborescence), en se basant sur line_profiler : https://github.com/pyutils/line_profiler, fork de https://github.com/rkern/line_profiler

TODO

  • Several classes in one file : bug...

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html_report_line_profiler-0.1.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

html_report_line_profiler-0.1.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file html_report_line_profiler-0.1.1.tar.gz.

File metadata

File hashes

Hashes for html_report_line_profiler-0.1.1.tar.gz
Algorithm Hash digest
SHA256 797f7e4b4283dd5b4da46e23d8473dfecbea46d9526f3905c72fd91f80b95a13
MD5 6903d5e8475ab448d838f6184f4a0f92
BLAKE2b-256 ad743e1e4189fe2ee332fba4d38d4e9979d4639154fa62f92cf608e7464d2865

See more details on using hashes here.

File details

Details for the file html_report_line_profiler-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for html_report_line_profiler-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3766420bb52577200d9fd69c0cfba50fe4337ba90fda0eb8ead7b820c1d70e0d
MD5 db2e80020316be6421abb90a9bd9654a
BLAKE2b-256 fadb57478307a50613bf3eec038843f990861630ecd2aabc280e5d862e2b62b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page