Coder Social home page Coder Social logo

hsptest's Introduction

hsptest - HSP3スクリプトでテストを書くためのフレームワーク

test

HSP3言語で書かれたプログラムをテストするためのフレームワークです。pytestのような使い心地を目指しています。現在開発途中です。

インストール

hsptestは以下の手順でインストールしてください。

  1. HSP3インストールフォルダ(例:C:/hsp36)を環境変数PATHに追加します
  2. Releasesからhsptest.zipをダウンロードします
  3. hsptest.zipを解凍し、中に含まれるinstall.batを実行します。

バッチファイル(run_hsptest.bat)の使い方

run_hsptest.batをエクスプローラからダブルクリックすることで、hsptestの実行が開始します。
コマンドプロンプトが起動され、テストスクリプトを実行した結果が表示されます。

また、hsptest_log.txtというファイルが生成され、その中にテストのログが出力されます。

開発中にコマンドを叩かないスタイルの方は是非お使いください。

コマンドラインからの使い方

以下のコマンドでhsptestを実行できます。

hsptest

引数無しでhsptestを実行すると、実行したカレントディレクトリ内の全てのテストスクリプト(ファイル名にtestが含まれるhspスクリプトファイル)を実行し、テストします。

テストスクリプトが別のフォルダに置かれてある場合は、そのフォルダを引数で指定することができます。

hsptest path/to/testfolder

引数にはテストスクリプトを直接指定することもでき、その場合は指定したスクリプト内のテストのみを実行します。

hsptest path/to/test.hsp # test.hsp内のテストのみを実行

引数にはディレクトリまたはファイルを複数指定することもできます。

hsptest path/to/testfolder1 path/to/testfolder2 # testfolder1とtestfolder2の中身を連続でテストする

hsptestユーザマニュアルのリンク

hsptestの詳しい使い方は、hsptestユーザマニュアルをご覧ください。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.