-
Notifications
You must be signed in to change notification settings - Fork 275
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
Development
: Reduce random data in server tests
#6602
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small change for the better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. Added a suggestion to reduce random data even further.
src/test/java/de/tum/in/www1/artemis/tutorialgroups/AbstractTutorialGroupIntegrationTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
6d9cdf9
…e-random-test-data" This reverts commit 6d9cdf9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reapprove after merge conflict
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## develop #6602 +/- ##
==========================================
Coverage 80.39% 80.39%
- Complexity 13588 13589 +1
==========================================
Files 2398 2398
Lines 91683 91683
Branches 12870 12870
==========================================
+ Hits 73704 73709 +5
+ Misses 9889 9880 -9
- Partials 8090 8094 +4 see 9 files with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapproved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapproved after merge
Checklist
General
Server
Motivation and Context
Random test data can lead to flaky tests. Furthermore, generating random data for tests creates an unnecessary overhead compared to hard coded values.
Description
In this PR, the majority of random test data has been replaced with either hard coded values, or a combination of hard coded values and unique identifiers such as IDs.
Steps for Testing
Test changes only
Review Progress
Code Review