Fix test organization and setup #28

Open
opened 2022-10-14 03:23:25 +00:00 by heartles · 0 comments
Owner

PROBLEM: unit tests are failing widely following refactors
PROBLEM: putting unit tests inside the same file as the code makes test organization weird

New test guidelines:

  • Unit tests should be in the same directory but not the same file as the code they are running
  • They should generally sit in a *file*_test.zig file
  • Packages should have a test.zig in their root that does the same work as lib.zig or main.zig
  • Integration tests can stay where they are

TODO: Look into code coverage tools

PROBLEM: unit tests are failing widely following refactors PROBLEM: putting unit tests inside the same file as the code makes test organization weird New test guidelines: - Unit tests should be in the same directory *but not the same file* as the code they are running - They should generally sit in a `*file*_test.zig` file - Packages should have a `test.zig` in their root that does the same work as `lib.zig` or `main.zig` - Integration tests can stay where they are TODO: Look into code coverage tools
heartles added the
build
tests
labels 2022-10-14 03:23:25 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: heartles/fediglam#28
No description provided.