You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Minitest on Rails - `COVERAGE=FullSummary bin/rails test file1 file2 file3`
256
+
- Sus - `COVERAGE=FullSummary bundle exec sus file1 file2 file3
257
257
8. After you have finished writing the tests, you should run the test suite again with `PartialSummary` and look if the coverage for the previously uncovered lines in the aforementioned files has increased. You should keep iterating through this until you reach a satisfactory coverage percentage (let's say 90-95% unless explicitly mentioned otherwise), or until you cannot improve the coverage any further.
258
258
259
259
### Code Writing Best Practices
@@ -262,9 +262,9 @@ A step by step scenario when trying to increase the codebase's coverage would be
262
262
2. Look for a Rubocop config file in the codebase and follow the mentioned rules if possible. Rubocop rules live in `.rubocop.yml`.
263
263
3. Every spec file mirrors the class path (`app/services/foo/bar.rb` > `spec/services/foo/bar_spec.rb`).
264
264
4. A quick bullet list eliminates guesswork:
265
-
- 100-char lines
266
-
- single quotes except when string interpolation needed
267
-
- parentheses on multi-line method calls
265
+
- 100-char lines
266
+
- single quotes except when string interpolation needed
0 commit comments