Project

General

Profile

Actions

Feature #1758

closed

Cleanup unit tests.

Added by Jason Ish about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Effort:
Difficulty:
Label:

Description

Based on discussion with Victor. Here are some of the ideas out of it.

- Tests should just return 1 for success, 0 for failure, eliminating the need to specify a success return value during registration.
-- Requires cleaning up tests that return a value other than 1 or 0 to return 1 for success, 0 for failure.
-- Convert functions that return 0 for success to 1 for success.
-- Rewrite all calls to UtRegisterTest (spatch).

- Provide macros to test failure conditions:
-- ie: FAIL_IF(expression)

- Move unit tests to a different file with a clear correlation against the file it is testing.


Subtasks 2 (0 open2 closed)

Feature #1760: Unit tests: Don't register return value, use 1 for success, 0 for failure.ClosedJason Ish04/08/2016Actions
Feature #1761: Unit tests: Provide macros for clean test failures.ClosedJason Ish04/08/2016Actions
Actions

Also available in: Atom PDF