Skip to content

Commit bf65143

Browse files
committed
Add entry to CHANGELOG and update README to include IPython compatibility
1 parent 81d9f8c commit bf65143

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
### Added
88
- PR template
99
- Test against 3.10
10+
- Compatibility with IPython Notebooks
1011

1112
## [0.5.0] - 2021-11-09
1213
### Added

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Lists the slowest tests based on the information stored in the test durations fi
6161
## Interactions with other pytest plugins
6262
* [`pytest-random-order`](https://github.com/jbasko/pytest-random-order): ⚠️ The **default settings** of that plugin (setting only `--random-order` to activate it) are **incompatible** with `pytest-split`. Test selection in the groups happens after randomization, potentially causing some tests to be selected in several groups and others not at all. Instead, a global random seed needs to be computed before running the tests (for example using `$RANDOM` from the shell) and that single seed then needs to be used for all groups by setting the `--random-order-seed` option.
6363

64+
* [`nbval`](https://github.com/computationalmodelling/nbval): `pytest-split` could, in principle, break up a single IPython Notebook into different test groups. This most likely causes broken up pieces to fail (for the very least, package `import`s are usually done at Cell 0, and so, any broken up piece that doesn't contain Cell 0 will certainly fail).). To avoid this, after splitting step is done, test groups are reorganized based on a simple algorithm illustrated in the following cartoon:
65+
66+
![image](https://user-images.githubusercontent.com/14086031/145830494-07afcaf0-5a0f-4817-b9ee-f84a459652a8.png)
67+
6468
## Splitting algorithms
6569
The plugin supports multiple algorithms to split tests into groups.
6670
Each algorithm makes different tradeoffs, but generally `least_duration` should give more balanced groups.

0 commit comments

Comments
 (0)