Skip to main content

Generate an HTML report for line_parser

Project description

Intro

Basé sur https://github.com/pyutils/line_profiler, fork de https://github.com/rkern/line_profiler

TODO

  • Several classes in one file : bug...
  • Badges de la page d'accueil de la doc a changer

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.1a0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for html_report_line_profiler-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 1b81cc3c76785bcf3ea18a63c764bbd880e93bcaf4ebbc421c762dc9c78bc5b8
MD5 373277c72a6a856fbf6fe4da28c49711
BLAKE2b-256 a79cc28625b3cc43fbf897b49c97ae0c70aafcce72eb6d44497353e7055470f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for html_report_line_profiler-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 4102dc6d0465c59efd4590affb893d96083112f030fbd51e9173fedfa02e4a0e
MD5 980d8476e1102dd033202d8cc27f0ea6
BLAKE2b-256 ea7112775b6a85dc6be7d8840857a2b66e9f0870b82a7baa83c9a4086fbac22d

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