-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
#1606 context loader listener not initialized during controller tests #1608
#1606 context loader listener not initialized during controller tests #1608
Conversation
…ests Check if `EnvironmentContextLoaderListener.PROPERTIES` is empty.
…ests Test database storage
Codecov Report
@@ Coverage Diff @@
## main #1608 +/- ##
============================================
+ Coverage 13.45% 13.91% +0.46%
- Complexity 445 453 +8
============================================
Files 256 256
Lines 8378 8409 +31
Branches 845 876 +31
============================================
+ Hits 1127 1170 +43
+ Misses 7207 7187 -20
- Partials 44 52 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@tomaszsmy In db8dd40, you'll see that I did some refactoring of tests that stopped passing when I added So to make tests less fragile, I suggest we write them in such a way that they will still work even though other tests are storing similar content in the database. One way to do that, is to not expect a specific number of entities stored in the database, but instead look at the total number stored before and after individual test. This is because it should be okay if the database already contains content before running through individual tests, so no need to delete content after tests either. I hope all this makes sense 🙂 |
src/test/java/ai/elimu/web/content/word/WordCreateControllerTest.java
Outdated
Show resolved
Hide resolved
…ized-during-controller-tests
closes #1606