How to run tests?

Hello, I am trying to run make test from inside the docker container created with Dockerfile.dev and I get some failures.

First Phantom crashes. I had to add libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev for it to work (not sure all of them are needed).

Then the redis version seems to be too old as mentioned here https://github.com/getsentry/sentry/issues/2870

So I am also installing a newer redis from source.

But that left me wondering: that’s certainly not the way it should be done. How should I try to run the tests?

Thanks

I’m not sure. We definitely do not do this. We all run from our host machines on OSX. I should probably remove this Dockerfile.dev since it’s not very useful yet without investing more time into it which I can’t do now.

thanks, it makes sense.

But I’m curious, on OSX you have the project installed directly on the OS or you use docker in some way?

We generally try to keep this up to date: https://docs.sentry.io/internal/environment/

1 Like