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

Pytest v2 #297

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Pytest v2 #297

wants to merge 14 commits into from

Commits on Apr 23, 2024

  1. pytest initial commit

    -  default settings for parser made a global variable for easy importing
    -  create_parser make parser, so that it can be imported and used in pytest
    -  h4 tags removed from plotless gui
    -   pytest waits for h4 tags to appear to commence testing
    - page.py has functions to get data from histograms, plots, sorting
    -  also has functions to get title data and use slider
    
    Move data from file to script
    
    -  keys, titles, file_names, file_names_recursive now global vars
    -  test_find_causal_files uses those vars
    -  reformatted
    
    Expected Values written into script
    
    -  test_parse_files now has expected vals in script
    - tests impact, point count, speedup
    -  values are rounded to 4 to avoid floating point errors
    
    -
    
    Added expected title sets
    
    -  added file_names to find_causal_files and parse_files
    -  Added expected title sets to alpha_title_order
    -  Added expected title sets to gui_flag tests
    - Added workload_dir instead of absolute path
    
    reformatting
    
    Separate test_parse_files by test
    
    -  each test runs parse_files with a different set of inputs
    -  some expected vals are global bc they are used often and consistent
    
    split compute speedups
    
    -  each test runs compute_speedups with a different set of inputs
    -  removed need for test_results.json
    -  sparse tests for plot data
    -  add expected_title_set for ordering tests
    -  removed experiments/progress_points since it is being tested already
    
    Move testing validation from parse_files to compute
    
    -  Validation now tested with single file and multiple
    -  Added expected title set to min_points_slider test
    -  Remove unused parts of code
    
    min points fix
    
    -  Changed min points  to greater than or equal
    -  Redefined point count to num points in line not chart
    - Some reformatting
    
    Slider, single line legend, and upload file fix
    
    -  Remove unused function
    -  Add using flag min points to slider in header
    -  Add legend for when only chart has only one line
    -  Name reformatting
    -  Gui workload path now uses find_causal_files
    -  Drag and Drop file now has correct workloads
    
    Uploaded_file and compute_sorts tests
    
    -  Add testing for compute_sorts
    -  Add testing for uploaded_file
    -  Remove print statements
    
    Put frequently used data as global var
    
    -  Add json files used for testing
    -  Put frequently used data as global var
    -  Update file names to use os.path
    
    Reformatting
    
    Remove unused imports/variables
    
    remove unused imports
    
    New min points bug
    
    -  Redefining Min points changed test output
    
    Linting errors fix
    
    -  Move imports to the top of file
    -  remove unused vars
    
    Linting error fix
    
    -  Move imports to the top of file
    
    Remove extra spaces
    
    reformatting
    
    Captured Histogram data Now tested
    JoseSantosAMD authored and jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    9620ad3 View commit details
    Browse the repository at this point in the history
  2. Causal GUI test file reorganization

    - Relocated /tests to /source/tests
    - Relocated /workloads to /source/workflows
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    c26752b View commit details
    Browse the repository at this point in the history
  3. Update .gitignore

    - add /geckodriver.log produced during testing
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    1a7f92b View commit details
    Browse the repository at this point in the history
  4. Create pytest.ini

    - added /pytest.ini with a default setup when running testing
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    24388a2 View commit details
    Browse the repository at this point in the history
  5. Update parser.py

    - Suppress 'No matching causal data for expected validations:' message from compute_speedups(...) function unless debug is True
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    536721b View commit details
    Browse the repository at this point in the history
  6. Update causal GUI test files

    - tweaked imports after relocation
    - added license to tests/page.py and tests/tesh_graphs.py
    - fixed test_find_causal_files_valid_directory comparing unsorted data
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    64dd682 View commit details
    Browse the repository at this point in the history
  7. GUI testing workflow

    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    03b9135 View commit details
    Browse the repository at this point in the history
  8. Update test_graphs.py

    - fixed some test failures (comparing unsorted lists, etc.)
    - corrected some reference values in tests
    - added try/finally in many places to ensure process running GUI is terminated
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    07ab689 View commit details
    Browse the repository at this point in the history
  9. python workflow update

    - use sudo for apt-get since not in docker container
    - add ~/.local/bin to PATH
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    bd3b845 View commit details
    Browse the repository at this point in the history
  10. Update python workflow

    - install requirements and gecko in testing
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    9a8c921 View commit details
    Browse the repository at this point in the history
  11. Update python workflow

    - tweak installs for testing
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    d001f69 View commit details
    Browse the repository at this point in the history
  12. Update python workflow

    - refresh snap
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    19ae19a View commit details
    Browse the repository at this point in the history
  13. Update python workflow

    - tweak installs for testing
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    7687342 View commit details
    Browse the repository at this point in the history
  14. Update test_graphs.py

    - new strategy for headless browser
    jrmadsen committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    e7978ee View commit details
    Browse the repository at this point in the history