Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add --repeat option to tools/test.py #6700

Closed
wants to merge 4 commits into from

Commits on May 12, 2016

  1. test: add --repeat option to tools/test.py

    I often want to run a test many times to see if a failure
    can be recreated and I believe this is a common
    use case.  We even have this job in the CI
    https://ci.nodejs.org/job/node-stress-single-test/configure
    but often you want to run it on a specific machine.
    
    This patch adds the --repeat option so that
    you can repeat the selected set of tests a
    number of times. Given existing options
    in test.py this will allow you to run
    one or more tests for the number of
    repeats specified. For example:
    
    tools/test.py -j8 --repeat 1000 parallel/test-process-exec-argv
    
    runs the test-process-exec-argv test 1000 times,
    running 8 copies in parallel
    
    tools/test.py --repeat 2
    
    would run the entire test suite twice.
    
    �
    mhdawson committed May 12, 2016
    Configuration menu
    Copy the full SHA
    a41c5ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abb3e63 View commit details
    Browse the repository at this point in the history
  3. address rest of comments

    mhdawson committed May 12, 2016
    Configuration menu
    Copy the full SHA
    f36f59d View commit details
    Browse the repository at this point in the history
  4. address another comment

    mhdawson committed May 12, 2016
    Configuration menu
    Copy the full SHA
    efad8e9 View commit details
    Browse the repository at this point in the history