Skip to content

added cypress smoketest#19

Merged
hollesse merged 1 commit intomainfrom
cypress
Oct 20, 2022
Merged

added cypress smoketest#19
hollesse merged 1 commit intomainfrom
cypress

Conversation

@hollesse
Copy link
Copy Markdown
Member

We should have our pipeline for releasing first, as we need to release this after the change. If we do not do this we will get false entries for the statistics

room.name());
stats.incrementTimer(timer);
if (!Objects.equals(room.name(), SMOKETEST_ROOM_NAME)) {
stats.incrementTimer(timer);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since its test specific production code, let's minimize it's distraction and move the whole if block into a function incrementTimerOfSmokeTestRoom or something, so its only one line.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that’s not what it does! It increments the timers for all room except for the rest room.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly, sorry 😊

room.name());
stats.incrementBreaktimer(breaktimer);

if (!Objects.equals(room.name(), SMOKETEST_ROOM_NAME)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Copy Markdown
Contributor

@gregorriegler gregorriegler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like cypress. First I thought it would be overkill to have cypress for monitoring. But now I see you did meaningful tests. I think it's fine.

@hollesse
Copy link
Copy Markdown
Member Author

I first really just thought about testing if the index page return 200 but then I it came to my mind that the timer heavily depends on JavaScript and that we do not have any good tests for that. So I thought some smoke tests that test the core functionality would be good to catch issues there. In my honest opinion we should later even think about writing more cypress test which can be added to the ci pipeline.

@hollesse hollesse merged commit 3ffa6da into main Oct 20, 2022
@hollesse hollesse deleted the cypress branch April 19, 2024 17:27
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

Successfully merging this pull request may close these issues.

2 participants