You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be neat to write a pytest plug-in which automatically extracts tests written alongside actual SourcePawn code. This would be a very viable option for plug-in authors to begin testing. Perhaps something like this:
// STYLE A/// @assert Negate(False)/// @assert not Negate(True)publicNegate(thing) {
return!thing;
}
// STYLE B -- more py.test/go test like:
#ifdefTESTpublicbool:TestMyStuff() {
returnMyStuff() ==12;
}
#endif
The text was updated successfully, but these errors were encountered:
I was just talking to Psytronic about this. I'd really like to see better documentation and test functionality in SourceMod, my guess is we'd want to coordinate with the main project on the format and syntax of this.
It would be neat to write a pytest plug-in which automatically extracts tests written alongside actual SourcePawn code. This would be a very viable option for plug-in authors to begin testing. Perhaps something like this:
The text was updated successfully, but these errors were encountered: