Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

モデルの再設計 #105

Closed
bleis-tift opened this issue Mar 2, 2016 · 4 comments
Closed

モデルの再設計 #105

bleis-tift opened this issue Mar 2, 2016 · 4 comments
Milestone

Comments

@bleis-tift
Copy link
Contributor

モデルの再設計時に考慮すべき事

過去に書いたモデルについてのドキュメントも参考にする。

@pocketberserker pocketberserker added this to the 2.0.0 milestone Mar 3, 2016
@bleis-tift
Copy link
Contributor Author

  • アサーション結果のメモ化 -> Lazyで解決
  • 正しい実行時間の計測 -> 直接実行された実行時間と、最初に実行された実行時間の2つを持てばよい
  • AppDomainを越えるための工夫 -> Interfaceモジュールを用意する
  • バージョンアップ時の影響 -> 後で別ドキュメントにまとめる
  • どこで失敗したかの情報をどう持たせるのか -> コンピュテーションごとにbindで連番を持たせ、bind内に失敗が来た場合はネストさせて伝搬する(NotPassCauseを再帰構造にする)
  • setup/teardown -> try-finallyを用意
  • テストのカテゴリ化 -> メタデータに持たせるだけは持たせておく
  • 別スレッドで発生した例外の扱い -> AggregateException

@bleis-tift
Copy link
Contributor Author

モデルに追加する情報

  • 直接実行された実行時間
  • 最初に実行された実行時間
  • コンピュテーション式中の位置情報(連番)
  • カテゴリ

@kekyo
Copy link
Contributor

kekyo commented Mar 29, 2016

メモ: バックグラウンド把握してないんですが、別スレッドで発生する例外はExceptionDispatcherInfoで投げなおすと良いかも #NET45以降限定 http://www.kekyo.net/2015/06/22/5119

@bleis-tift
Copy link
Contributor Author

スタックトレースの問題ではなく、単に現状では別スレッドで投げられた例外によってPersimmon.Consoleが終了してしまう、という問題ですね。

@pocketberserker pocketberserker modified the milestones: 3.0.0, 2.0.0 Jun 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants