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

Testing suite #4

Open
jaren opened this issue Mar 13, 2019 · 2 comments
Open

Testing suite #4

jaren opened this issue Mar 13, 2019 · 2 comments
Assignees

Comments

@jaren
Copy link
Member

jaren commented Mar 13, 2019

Add a suite of tests in JSON / DSL with fuzzing, etc.

@leoadberg
Copy link
Member

The test JSON should take in a sim file and assert stuff for various types of failures. For example:

{
    "sim": "config/simulations/testsim.json",
    "tests": [
        {
            "name": "normal",
            "failures": [],
            "assertions": [
                "max_height > 500",
                "landing_speed < 10",
            ]
        },
        {
            "name": "altimeter_fail",
            "failures": [
                "altimeter_zero"
            ],
            "assertions": [
                "max_height > 500",
                "landing_speed < 10",
            ]
        }
    ]
}

Though feel free to make any changes necessary. Also probably figure out an actually workable way to do assertions and stuff.

@leoadberg leoadberg self-assigned this Mar 14, 2019
@jaren
Copy link
Member Author

jaren commented Mar 16, 2019

Assertions are done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants