Skip to content

Test: Integration test for successful app start #218

@clstaudt

Description

@clstaudt

First attempt: This is not yet working since the app process does not terminate.

def test_app_starts_and_quits():
    # Start the app process
    app_process = subprocess.Popen(["python", "app/app.py"])
    
    # Wait for a few seconds to let the app start
    time.sleep(3)
    
    # Verify the process is still running
    assert app_process.poll() is None
    
    # Terminate the app process
    app_process.terminate()
    
    # Wait for the process to end
    app_process.wait()
    
    # Verify the process has ended

    assert app_process.returncode is not None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions