Skip to main content

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


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.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

html_report_line_profiler-0.1.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for html_report_line_profiler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f6a682ede5d1acaea516d6f17bf3fb95c64b20fd171d88200ab9f0154756f0b
MD5 54f6b7782071a61b866ab543bcfa24d3
BLAKE2b-256 881878a8788789d043757feb94c1259f28367e658a7a6959b67e0df0f41bce2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for html_report_line_profiler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0def26f60f77a32b32018ed2feeb5b2ebe6ae4538a2cc587000afe87cb2fb82
MD5 8c4230e0c3dcd33f2f06d7d3769c879e
BLAKE2b-256 07ae85ea5d591d2b2f03515e875fca813cfd74780aaeff89bb6de7dde9aa744e

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