GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Random order of test execution · Issue #422 · utPLSQL/utPLSQL

Random order of test execution #422

New issue
Copy link
New issue
Copy link
Closed
#943
#878
Closed
Random order of test execution#422
#943
#878
Copy link
Assignees
Pazus
Labels
enhancement
Milestone
v3.1.7

Description

@Pazus
Pazus
opened on Jul 24, 2017
Issue body actions

Define suite level annotation to shuffle tests on execution

Activity

  1. Pazus
    added
    enhancement
    on Jul 24, 2017
  2. Pazus
    self-assigned this
    on Jul 24, 2017
  3. jgebal commented on Jul 26, 2017

    @jgebal
    jgebal
    on Jul 26, 2017
    Member
    More actions

    It should be a runtime paramerer I think.
    This way you can easily check for test independency.
    Also, do we want to have random or simply reverse order?

  4. mathewbutler commented on Jul 26, 2017

    @mathewbutler
    mathewbutler
    on Jul 26, 2017
    More actions

    On of the principles of xunit test approaches is that tests should be independent and so relying on ordering of tests (outside of before or beforeall annotation) is considered "a bad thing".

    Maintaining independent tests means that it is easier to diagnose failed test since the programmer only needs to look at a single test scope to understand everything needed to diagnose.

    Enabling this capability feels like a change in direction of ethos of a test suite.

    Just my 0.2c 😀

    Reacted by Roxane Sancho y Fran
  5. Pazus
    added this to the v3.1.0 milestone on Aug 5, 2017
  6. jgebal commented on Aug 31, 2017

    @jgebal
    jgebal
    on Aug 31, 2017
    Member
    More actions

    That is why it should be a runtime parameter, not an annotation I think.
    Order (random or not) should not be part of test-suite definition.

    I love the idea of random or even simply reverse order of execution in suite.
    The ordering should not affect the setup/cleanup order though.

  7. jgebal
    added
    ready
    on Aug 31, 2017
  8. jgebal commented on Oct 24, 2017

    @jgebal
    jgebal
    on Oct 24, 2017
    Member
    More actions

    Enabling this capability feels like a change in direction of ethos of a test suite

    @mathewbutler - It would definitely be a positive change.

  9. mathewbutler commented on Oct 25, 2017

    @mathewbutler
    mathewbutler
    on Oct 25, 2017
    More actions

    @jgebal I’m just saying that we shouldn’t introduce anything that enables a repeatable order of execution of tests. Random is by definition not reliably repeatable, so fine.

  10. jgebal
    removed this from the v3.1.0 milestone on Feb 5, 2018
  11. Shoelace commented on Oct 9, 2018

    @Shoelace
    Shoelace
    on Oct 9, 2018
    Member
    More actions

    if a 'random' option is available at runtime (or annotation) then maybe a seed number should be output somewhere and allowed to be passed in should you need to recreate a "random run" to diagnose the issue.

  12. lwasylow commented on Feb 26, 2019

    @lwasylow
    lwasylow
    on Feb 26, 2019
    Member
    More actions

    Is this still planned?

  13. jgebal commented on Feb 26, 2019

    @jgebal
    jgebal
    on Feb 26, 2019
    Member
    More actions

    Yes. And this feature should be quite easy to implement now (hopefully) since the suote is build by running SQL on cache.
    The only thing to confirm is that it will not have negative impact on clients (SQLDeveloper)

  14. PhilippSalvisberg commented on Feb 26, 2019

    @PhilippSalvisberg
    PhilippSalvisberg
    on Feb 26, 2019
    Member
    More actions

    The SQL Developer extension does not directly executes the tests. It just calls ut.run or ut_runner.run. Everything is fine as long as it can rely on the sort order provided by the reporters.

  15. jgebal
    added this to the v3.1.7 milestone on Mar 26, 2019
  16. jgebal
    added a commit that references this issue on Mar 26, 2019

    Added support for random order of test execution.

    This issue will close once commit 23da3d7 is merged into the 'develop' branch.
    23da3d7
  17. jgebal
    closed this as completedin #878on Apr 1, 2019
  18. lwasylow
    added a commit that references this issue on Jun 18, 2019

    Release/v3.1.7 (#942)

    This issue will close once commit 1a5c525 is merged into the 'develop' branch.
    1a5c525
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Pazus
    Pazus

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    • v3.1.7

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.