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

User-story based integration tests. [WIP] #213

Open
3 tasks
YooSunYoung opened this issue Jul 3, 2024 · 0 comments
Open
3 tasks

User-story based integration tests. [WIP] #213

YooSunYoung opened this issue Jul 3, 2024 · 0 comments

Comments

@YooSunYoung
Copy link
Member

We need an integration test as a check-point of current implementation.

I would like to approach this based on a user-story.

I'll first make it work locally and then move them to an automated platform, i.e. gitlab runner, if needed.

User Story - Background Measurement

I wrote down some potential variations but for now only first of them are possible/feasible.

  1. A user wants to measure the background.
    var 1-1. A user wants to measure the background before measuring a sample.
    var 1-2. A user wants to measure the background after measuring a sample.

  2. The user wants to see the wavelength histogram of the monitor as we collect the background - may determine how long they want to collect background.
    var 2-1. See the last N seconds of the histogram.
    var 2-2. See the stack of i*N seconds of the resulst, updating every N seconds.

  3. In the middle of the experiment.
    Var 3-1. The user pauses the beamlime in the middle.
    Var 3-2. The beam stopped X seconds in the middle.
    Var 3-3. The monitor data didn't flush within N seconds.

What to include

  • Kafka broker integration
  • Visualisation updates - dumping an image file.

What NOT to include

  • User-NICOS interaction will be just simulated and produce relevant message to broker directly.

Test dataset

To simulate the background measurement, we can use loki.data.loki_tutorial_background_run_60248...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant