trailofbits/manticore

Cleanup Manticore workspace when a test passes

Open

#1.617 geöffnet am 21. Feb. 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (481 Forks)batch import
good first issuetesting

Repository-Metriken

Stars
 (3.469 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

It's nice if testing doesn't produce unnecessary artifacts after running with success but keeps relevant info on fail for further inspection.

Pytest should have a nice way of creating fixtures that can post-process a test based on whether it failed or not https://docs.pytest.org/en/latest/example/simple.html#making-test-result-information-available-in-fixtures

If a test fails, then keep the Manticore workspace, and, if possible, print the associated failed test's workspace directory in the pytest output to know where the user should look.

If a test passes, then remove the Manticore workspace.

Since some of our tests are structured differently, the exact implementation will likely look different for different tests.

@reaperhulk Do you have any comments, suggestions, or references for doing something like this?

Contributor Guide