question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support updating test durations when running for a single group

See original GitHub issue

It would be useful to add support for calculating test durations while using the parameters --splits and group. To clarify, this is currently possible but it runs the full test suite, not just the tests for that particular group. Instead, users can calculate the test_durations for each group and then combine the results.

Happy to send a merge request your way if you think this makes sense!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jerry-gitcommented, Jun 16, 2021
1reaction
sondrelgcommented, May 31, 2021

Ok so to summarize:

  • Leave --store-durations as a required argument for triggering any caching
  • Write durations data to .test_durations by default, unless the existing --durations-path argument is passed
  • Change from list of list to saving the cache data as a dictionary

I agree we probably don’t need to involve the .pytest_cache - I can just put the .test_durations file in my own .gitignore and get the same result 🙂

Otherwise people would easily start committing .test_durations file unintentionally.

Yeah I agree 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up an open, closed, or internal test - Play Console Help
Using Play Console, you can test your app with specific groups or open your test to Google Play users ... Can I run...
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
Learn how to run tests with Test Explorer in Visual Studio. ... Duration, Groups tests by execution time: Fast, Medium, and Slow.
Read more >
Test splitting and parallelism - CircleCI
A guide for test splitting and running tests across parallel compute environments to optimize your CircleCI pipelines.
Read more >
Automatically apply VM configuration updates in a MIG
This document describes how to automatically apply configuration updates to the virtual machine (VM) instances in a managed instance group (MIG).
Read more >
What is A/B Testing? A Practical Guide With Examples | VWO
Requires the test to run for a set period to get correct data from it but can't figure out how close or far...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found