Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support temporal assertions regarding intersection of a time period and a given datetime #691

Open
Seddryck opened this issue Aug 5, 2022 · 0 comments

Comments

@Seddryck
Copy link
Owner

Seddryck commented Aug 5, 2022

It should be possible to assert that a result-set, with a time period, is including/leading/lagging a given datetime. A time period is defined as the closed-open time interval between two datetime.

For lags and leads, it's possible to define a variant immediately="true" to specify that the time-period should starts/ends at the given date.

<system-under-test>
  <result-set>
    ...
  </result-set>
</system-under-test>
<assert>
  <leads timestamp="...">
    <time-period start="#3" end="EndPeriodColumn"/>
    <group-by>...<group-by>
  </leads >
</assert>

The optional group-by let you define that system-under-test rows should not be tested as a single set of rows but should be subdivided into subsets, each subset being defined by the group-by.

@Seddryck Seddryck changed the title Support temporal assertions for a time period and a given date/time Support temporal assertions regarding intersection of a time period and a given date/time Aug 5, 2022
@Seddryck Seddryck changed the title Support temporal assertions regarding intersection of a time period and a given date/time Support temporal assertions regarding intersection of a time period and a given datetime Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant