Lemoncheesecake

Latest version: v1.15.0

Safety actively analyzes 630026 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 23

1.1.0

- **lcc run**: the `--reporting` argument can now be used with turn on/off directives of default
backends (example: `+junit` to turn on junit or `^console` to turn off console)
- **API**: `lcc.disabled()` now takes an optional `reason` argument that will be available
in the generated report
- **API**: `MatchDescriptionTransformer` has been renamed into `MatcherDescriptionTransformer`
(backward-compatibility with former naming is kept)
- **PyPI**: update the "Development Status" from "Beta" to "Production/Stable" and add some extra
pointers to sources, documentation, and issue tracker
- **doc (http://docs.lemoncheesecake.io)**:
- add a new section that deals with `lcc run` in depth
- improve documentation of `{check,require,assert}_that_in` functions
- add document for `MatcherDescriptionTransformer`

1.0.0

Major release with API breaking changes, see http://docs.lemoncheesecake.io/en/latest/migrating-to-v1.html
to know to migrate from 0.22.x release.

API

- Major overhaul of `lemoncheesecake.project`, see the migration guide for more information
- Major overhaul of the `Matcher` class, see the migration guide for more information
- Add a `is_not` alias for the `not_` matcher
- In `lemoncheesecake.matching`, the following functions have been removed:
- `this_dict`
- `check_that_entry`
- `require_that_entry`
- `assert_that_entry`
- Remove the `log_warn` alias for `log_warning`
- Remove `add_test_in_suite` and `add_tests_in_suite functions`
- Matcher renamings:
- `has_values` => `has_items`
- `has_only_values` => `has_only_items`
- Rename `lcc.conditional()` decorator into `lcc.visible_if()`
- The fixture scope `session_prerun` has been renamed into `pre_run`
- The `binary_mode` argument of the `save_attachment_content` function has been removed
(the file opening is determined upon data argument type)

CLI

- `lcc run`: the `--enable-reporting` and `--disable-reporting` arguments have been removed

Report

- The `generation_time` of the report is now computed by the reporting backends
- JSON/XML: dates are now stored in plain ISO8601 format in UTC
- HTML: dates are now localized in the browser's timezone
- HTML: statistics are computed in Javascript
- HTML: the report now uses static resources instead of external resources by default

Reporting backends

- Slack & ReportPortal: all environment variables used for configuration are now prefixed by ``LCC_``,
example: `RP_URL` => `LCC_RP_URL`

Documentation

- Add type annotations in major part of the public API
- Website: add a API reference chapter
- Website: add a new chapter on how to create a custom matcher

Under the hood

- Many code refactoring, among which:
- Make the `lemoncheesecake.filter` API more Pythonic
- Rename `runtime` into `session`
- Improve class and attribute naming in `lemoncheesecake.reporting.report`,
results of setup/teardown code now have a "status" attribute, also note the `TreeLocation`
has been renamed into `ReportLocation` and moved into that module
- Fix Python warnings
- HTML report: all "data" class names have been renamed to remove the trailing "Data" and
all component names have been updated to add a trailing "View", example:
- `Test` => `TestView`
- `TestData` => `Test`

0.22.10

- **lcc run**: display skipped tests as '--' instead of 'KO'

0.22.9

- **Report**: provide more information about why a test has been skipped

0.22.8

- **ReportPortal**: the reporting backend now supports parallelized tests
- **under the hood**: the EventManager is no longer a global instance, two event
manager implementations now exist: AsyncEventManager and SyncEventManager
- **under the hood**: suite's start/end times, as well as checks, attachments and urls times
are now stored in JSON and XML report data

0.22.7

- Fix: make all commands that use a report (``lcc diff``, ``lcc report``, ``lcc top-*``)
work with a report corresponding to a running test session
- Fix possible crash when a test uses a ``lcc.depends_on()`` and that the referenced test fails and is defined
in a higher level suite

Page 7 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.