Skip to content

Online resources about testing time-dependant code #321

@intjelic

Description

@intjelic

I recently discovered property-based testing. It's pretty cool! However, I can't seem to find online resources related to testing pieces of code that involve time.

For example, think of a session API. When a session is consumed, the 'last time used' field must be set to current time. Past a certain time, the session has expired. Etc.

In fact, it's actually a very recurrent need.

Is property-based testing suitable for this use case ? Can anybody point me to online resources that treat this topic?

@ferd Does your book cover this topic ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions