문제

Is it possible to run a specified script before any commit in Pycharm/Intellij Idea? I want to make sure that tests are not broken. Thanks.

도움이 되었습니까?

해결책 2

Consider using TeamCity:

Note that it also provides integration with IntelliJ IDEA.

다른 팁

If you don't want to buy a TeamCity licence, you can also use the "toggle auto-test" feature that re-runs your tests whenever you change them.

It does not block your commits but warns you when you have a failed test.

I was looking for a similar quick solution, I integrated test execution before launch project execution adding a item in Run/Debug configuration - Before launch

Another best solution is integrate a git hook client like pre-commit

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top