flake8-junit-report-basic is a simple Python command-line tool (version 3.0.0) that converts the output from Flake8 static analysis into the JUnit XML format. This conversion facilitates integration with Continuous Integration (CI) systems like Jenkins or CircleCI, allowing them to display Flake8 failures alongside other test results. The project shows recent activity with its 3.0.0 release, though its historical context includes an older, unmaintained fork.
pip install flake8-junit-report-basicNo compatibility data collected yet for this library.
The quickstart demonstrates how to use `flake8-junit-report-basic` by first running `flake8` to generate a text report, and then using the `flake8_junit` command-line utility to convert that report into a JUnit XML file. This JUnit XML file can then be consumed by CI/CD tools. Ensure `flake8` is installed and a `my_module.py` file with some Flake8 issues is present for a meaningful report.
Review and update CI pipeline configurations or XML parsing logic to accommodate the new granular testcase structure in the JUnit report.
Always use `flake8_junit` as the command when interacting with the installed package. E.g., `flake8_junit input.txt output.xml`.
Verify the GitHub repository is `https://github.com/ricardogarfe/flake8-junit-report` and that the PyPI package is `flake8-junit-report-basic` to ensure you are using the actively maintained version.
Ensure your Python virtual environment is activated, or that the directory containing `flake8_junit` (e.g., `~/.local/bin` or your virtual environment's `bin`/`Scripts` directory) is in your system's PATH. On Windows, the error might appear as `'flake8_junit' is not recognized as an internal or external command, operable program or batch file.`
You need to first run `flake8` and direct its output to a text file, then provide that text file as the input and specify an output JUnit XML file. Example: `flake8 > flake8_report.txt` then `flake8_junit flake8_report.txt junit_report.xml`.
Always use `flake8_junit` as the command after installation, not `flake8-junit-report-basic`. Example: `pip install flake8-junit-report-basic` followed by `flake8_junit input.txt output.xml`.