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

Refactor runtests.jl to use a single run_tests function #3168

Merged
merged 5 commits into from
Jan 4, 2023

Commits on Jan 4, 2023

  1. Refactor runtests.jl to use a single run_tests function

    This PR continues the refactoring I have been doing of JuMP's tests.
    
     * Tests are now contained in a module which lives in test/test_xxx.jl
       file
     * Within a module, tests are functions beginning with test_
     * JuMPExtensions are tested by functions with the prefix test_extension_
       and take two optional positional argumennts for the model type and
       variable type
     * Test individual files via the command line \`julia runtests.jl [\<file\> [\<file\> ...]]\`
    
    This design is flexible, and separates the runninng of the tests from their
    definition. This should let us swap in other drivers instead of the one
    currently in runtests.jl.
    
    For example, we might want to experiment with:
    
     * Running all test functions within a module in parallel
     * Running each test file in parallel
     * Providing a more flexible command line interface
    
    If we get something nice, we could package it into Pukeko.jl for wider use
    in the Julia ecosystem.
    odow committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    2b45e7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e3fa2b2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f5ff6c View commit details
    Browse the repository at this point in the history
  4. Further simplifications

    odow committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    2bc3c88 View commit details
    Browse the repository at this point in the history
  5. Change license to MIT

    odow committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    3fd9f04 View commit details
    Browse the repository at this point in the history