1 / 11

AutoCAD でユニットテスト

AutoCAD でユニットテスト. guicheng. 株式会社ミネルバ 深津貴成. 自己紹介. HN: guicheng 専攻 : 分析化学 ( 水溶液中の超微量金属の定量 ) 趣味 : 天文 ( 低軌道から太陽系外縁くらいまで ) 本職 : プログラマ (AutoCAD のカスタマイズ ). なぜ CAD をカスタマイズするのか. 使いにくいから. なぜ CAD をカスタマイズするのか. 業界、会社ごとに作図の作法がある 設計者にも作図のクセがある. 汎用の CAD では対応不可能. AutoCAD のカスタマイズ API. メニュー

Download Presentation

AutoCAD でユニットテスト

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AutoCAD でユニットテスト guicheng 株式会社ミネルバ 深津貴成

  2. 自己紹介 • HN: guicheng • 専攻: 分析化学 (水溶液中の超微量金属の定量) • 趣味: 天文 (低軌道から太陽系外縁くらいまで) • 本職: プログラマ(AutoCAD のカスタマイズ)

  3. なぜCADをカスタマイズするのか 使いにくいから

  4. なぜCADをカスタマイズするのか • 業界、会社ごとに作図の作法がある • 設計者にも作図のクセがある 汎用のCADでは対応不可能

  5. AutoCAD のカスタマイズAPI • メニュー • Decel式 • AutoLISP • AutoCAD VBA • ObjectARX • .NET API

  6. AutoCAD のカスタマイズ • カスタムコマンドの作成が基本 • コマンドラインウィンドウがある • 大半が図面DBへの処理 • GUIを作ることはほとんどない ユニットテストと相性がいい

  7. NUnit のテスト結果出力 • テスト結果は Console.Out か Console.Error に出力される • どちらも任意の TextWriter に差し替え可能 コマンドラインウィンドウに出力する TextWriter を作ればいいんじゃね?

  8. AcadWriter を作ってみた エラー吐きまくって 使い物にならねぇorz そんでも、Assert系のクラスは問題なく使える

  9. NUnit の構造 CmmandMethod Runner NUnit User Tester User Framework AssertionException NUnit Runnerを作ってやればいいんか?

  10. AcadRunner を作ってみた \(^^)/

  11. 実はいろいろやってます • 属性使ってテストクラス・テストメソッドを特定 • テスト後に図面DBをロールバック • SetUp / TearDown 対応 などなど 問題点もまだまだいっぱいorz • 別図面を読むテストではロールバックできない • NUnitのすべての機能に対応できていない • NUnitがバージョンアップされるとお手上げ 修正に努めます……

More Related