Skip to content

Instantly share code, notes, and snippets.

@Drunkar
Created May 13, 2016 03:25
Show Gist options
  • Select an option

  • Save Drunkar/632d94026dc55bed84d288d7b30b1dad to your computer and use it in GitHub Desktop.

Select an option

Save Drunkar/632d94026dc55bed84d288d7b30b1dad to your computer and use it in GitHub Desktop.

How to: Pythonでのテスト

例: nbviewerのテスト環境

  1. travis ciを使用(.travis.ymlを実行)

    • .travis.ymlでinvokeを使用して環境のセットアップやtestコマンドを外部ファイル化(tasks.py)
  2. invokeでtasks.pyを実行

  3. tasks.pyの内部でnosetestsでテストを実行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment