Skip to content
Snippets Groups Projects
  1. Oct 15, 2021
    • Antoine Lambert's avatar
      tests: Ensure failing test with random fixture data can be reproduced · 61b80b8b
      Antoine Lambert authored
      Some tests input data returned by swh-web fixtures are sampled from
      filtered objects stored in a static test archive.
      
      In order to reproduce any failing test with the same fixture data:
      
      - add a new autouse function scope fixture setting the random seed
        to current time before each test execution and putting that seed
        in cache
      
      - implement custom pytest reporting which adds a new section detailing
        the random seeds used for each failing test and the pytests commands
        to reproduce the failures
      
      - add a new pytest option --swh-web-random-seed enabling to explicitly
        specify the random seed that will be used to run the tests
      61b80b8b
    • Antoine Lambert's avatar
      tests/conftest: Put filtered input data in cache · efbf0cdc
      Antoine Lambert authored
      Some tests input data returned by fixtures are sampled from filtered
      objects stored in a static test archive.
      
      In order to avoid repeating the same filtering operations multiple
      times, put these filtered data in cache.
      efbf0cdc
  2. Oct 14, 2021
  3. Oct 13, 2021
  4. Oct 12, 2021
  5. Oct 11, 2021
  6. Oct 08, 2021
  7. Oct 07, 2021
  8. Oct 06, 2021
  9. Oct 05, 2021
  10. Oct 04, 2021
  11. Oct 01, 2021
  12. Sep 29, 2021
  13. Sep 24, 2021
  14. Sep 23, 2021
  15. Sep 22, 2021
  16. Sep 21, 2021
Loading