Closed EyobAshenaki closed 2 months ago
@Yagth I have reproduced the problem based on the peace of code you provided and the problem seems to be with the import statements. The script assumes the root to be the same for each metta test file it tries to run while the metta test files try to import relative to their location. Which causes an import clash due to conflict of directories when the script tries to run metta test files consequently.
This PR contains a test runner that executes all tests found in a MeTTa project.
There are few requirements that needs to be satisfied for the test runner to work smoothly are:
...test.metta
for the script to recognize them and execute the tests found in them.assert..
expressions should be preceded by!
for the script to recognize and execute them as tests.