Open igaray opened 5 months ago
Here is the output of the research, first step would be to add a scarb-native-test
binary which would be the same as running scarb test
but with native execution. Here is the current implementation flow of scarb test
:
scarb test
will by default direct test execution to the scarb-cairo-test
binary here.TestCompilation
structure.From the above we can:
cairo-native-test
).cairo-native-test
binary which also makes use of the TestCompilation
structure to execute compiled test cases. In the case of scarb, we will just iterate every matched TestCompilation
.
We can currently run Cairo tests through native with out
cairo-native-test
command in this repo. It would be even better to one day be able to run tests driven scarb through native, so anyone managing their Cairo project with it could for example doscarb test --with-native
.A plan to integrate with scarb and see what changes it would require here would be the first step. A plan on modifications to scarb would be the second.