GithubHelp home page GithubHelp logo

unittest's People

Contributors

nandgate avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unittest's Issues

Allow running tests on target

A different test runner should be able to compile each suit for the target, upload it, run it and report on the result.

Allow multiple unit test source file for an application source.

Currently there is only one unit test source for an application source. Update the test runner script to support more that one unit test source. A convention will need to be created for the naming of the unit test sources files, maybe:

app/source/foo.c
test/source/test_foo.c
test/source/test_foo_descriptiveName.c

Both unit test files would be compiled and run with foo.c. Both tests are independent.

Add assertions for parameter value being < and > a value for all invocations on a mock

There are currently assertion to verify that a parameter is equal to a specific value for all invocations to a mock. (Assert_AllCalls1. etc)

Add asserts to verify that a parameter is (less than | greater than) to a specific value for all invocations to a mock. For consistency rename Assert_AllCalls1:

Ex:

Assert_AllCallsEquals1(fn, value);
Assert_AllCallsLessThan1(fn, value);
Assert_AllCallsGreaterThan1(fn, value);

Support for parameter number 1..5 (15 macros in total, 10 new)

Return sequences may not be working correctly

Investigate that return sequences from mocks are working correctly. Based on usage in the field this may not be working correctly for the last item of the sequence. Verify that:

int seq[]= {1, 2, 3};
Mock_ReturnSequence(fn, 3, seq);

Results in the following sequence:

fn() -> 1
fn() -> 2
fn() -> 3
fn() -> 3

This is just a "for instance" case, investigate the sequence usage generally.

Allow stand alone test files

Allow a test_foo.c file to be run without requiring an application foo.c file. This would allow tests for application headers (macros, etc.). At the moment the tests for headers need to ride along with other tests, even though the header may be used by multiple application files. This makes it hard to find and manage these tests.

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.