enkb123 / rosetta-io

0 stars 0 forks source link

Add TEST_LOCAL env var support #18

Closed nicholaides closed 2 months ago

nicholaides commented 2 months ago

This PR adds support for a TEST_LOCAL env var, which marks all tests as local without having to put @pytest.mark.local in the code everywhere.

@enkb123 if you merge this PR and merge it into your swift branch, you'll be able to use it to run the tests faster. Your mac should already have Swift installed.

You'll be able to do this: TEST_LOCAL=1 pytest -k swift, which should be quite fast.

The C# scripts/setup won't be able to work this way, but Go will if you can set up Go on your machine (I'll look into how to do that)