タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

gitとpythonに関するshiumachiのブックマーク (1)

  • Commit in git only if tests pass

    I've recently started using git, and also begun unit testing (using Python's unittest module). I'd like to run my tests each time I commit, and only commit if they pass. I'm guessing I need to use pre-commit in /hooks, and I've managed to make it run the tests, but I can't seem to find a way to stop the commit if they tests fail. I'm running the tests with make test, which in turn is running pytho

    Commit in git only if tests pass
    shiumachi
    shiumachi 2011/03/08
    gitを使うときに、テストがパスしたときだけコミットできるようにするにはどうすればよいか、という質問。例はpythonだが、言語依存のトピックではない
  • 1