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

Add integration tests #393

Merged
merged 17 commits into from
Mar 11, 2024
Merged

Add integration tests #393

merged 17 commits into from
Mar 11, 2024

Commits on Mar 8, 2024

  1. Add and configure PHPUnit

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    7280e6f View commit details
    Browse the repository at this point in the history
  2. Import theme data to the test site

    Data url obtained from the official docs, here: https://codex.wordpress.org/Theme_Unit_Test
    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    9ae9a76 View commit details
    Browse the repository at this point in the history
  3. Test Create_Block_Theme_Admin class

    Starting with the export_child_theme method.
    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    c57a4fa View commit details
    Browse the repository at this point in the history
  4. Improve comment for stub in test case

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    6a0f8a1 View commit details
    Browse the repository at this point in the history
  5. Avoid using real email in test installation

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    aa51a0c View commit details
    Browse the repository at this point in the history
  6. Add composer tests command to package json

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    c1843ba View commit details
    Browse the repository at this point in the history
  7. Add test github action

    Refactors test installation script for it to be able to run in a CI
    context without requiring user input
    
    try adding test action
    
    add mysql setup
    
    fix wp config creation command
    
    overwrite if it exists
    
    create wpconfig before install attempt
    
    move musql config to test step
    
    fix multiple command syntax
    
    add missing command
    
    add option to recreate db from cli
    
    Helps us skip the prompt for user input
    
    move cli options to the end
    
    add host to command call
    
    refactor to add options at the beginning
    
    try different order
    
    add missing steps
    
    use config create instead of core create
    
    skip check on config creation
    
    change to 127.0.0.1 as default host
    
    install composer dependencies
    
    refactor composer action
    
    install dev dependencies
    
    refactor Lint action
    
    silence stdout from test installation script
    
    pretty print tests
    
    do not profile composer
    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    054412c View commit details
    Browse the repository at this point in the history
  8. Refactor wp_get_theme calls

    Required to get sample test passing
    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    5b90888 View commit details
    Browse the repository at this point in the history
  9. wip: run tests within wp-env

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    3d86305 View commit details
    Browse the repository at this point in the history
  10. add checkout step to integration test check

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    bd04a3c View commit details
    Browse the repository at this point in the history
  11. bump phpunit polyfills version

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    7e08e56 View commit details
    Browse the repository at this point in the history
  12. enable running php tests locally

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    4baa942 View commit details
    Browse the repository at this point in the history
  13. add fork notice to install wp tests bin

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    ee8d469 View commit details
    Browse the repository at this point in the history
  14. Move php and js test to single job

    This allows us to share dependencies.
    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    c2ce26a View commit details
    Browse the repository at this point in the history
  15. run command outside container in gh context

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    a206209 View commit details
    Browse the repository at this point in the history
  16. run setup before php tests

    Vicente Canales committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    9f59c51 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    11a919f View commit details
    Browse the repository at this point in the history