Giter VIP home page Giter VIP logo

hbunit's Introduction

[ALPHA] hbunit Build Status

hbunit is a unit-testing framework for the Harbour language.

This is a initial work on porting the jUnit Java unit-testing framework to the Harbour languages, based on the xhUnit project.

Building and Testing

Considering you have Habour (http://harbour.github.io) installed, you can run the following commands to try hbunit.

To build the library and run the tests:

$> make
$> make test
Testcases:  7
Asserts:    29
Errors:     0
Failures:   0

Ok.

Contributting

If you wanna contribute to the project, follow this steps:

  • Fork this repository;
  • Create a branch to work on a feature/bug;
  • Open a Pull Request from your branch;

See https://guides.github.com/introduction/flow/index.html for more details on this workflow.

Copyright

See COPYRIGHT and LICENSE for more details. .

hbunit is a unit-testing framework for the Harbour language.

Copyright (C) 2014 Enderson maia

hbunit is a derivative work based on xhUnit, whose Copyright follows.

xhUnit: A Testing Framework for xHarbour

Copyright (C) 2004-2013 dionisio c. olo (http://sourceforge.net/projects/xhunit/)

hbunit's People

Contributors

endersonmaia avatar rafathefull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hbunit's Issues

CLASSDATA doesn't work on ADVPL

Since the TTestResult saves the result os the tests that was run by TTest (TTestCase, TTestSuite) on CLASSDATA variables, and ADVPL consider CLASSDATA the same as DATA variables, it's working on Harbour but not working on ADVPL.

On ADVPL, only the last test case that was run on a specific test suite has its tests' result shown.

My proposal is to extract this CLASSDATA variables to an external class that will store all the test cases' results.

Or implement this CLASSDATA behavior in ADVPL via macro or STATIC var inside the class' source file.

See: https://github.com/endersonmaia/hbunit/blob/master/lib/TestResult.class.prg#L28-L32

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.