• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 8144002629

04 Mar 2024 04:56PM UTC coverage: 58.928% (+0.7%) from 58.254%
8144002629

push

github

web-flow
#208: improve test infrastructure # 219: fix wrong executable (#238)

* Add first implementation

* Add javadoc

* Add javadoc

* Using target path instead of ressource path to make sure one-to-one copy of set up folders is used

* Add JavaDoc and mac mock program

* Add support for multiple dependencies while testing

* Minor changes

* Modify mock programs for testing

* Refactored example JmcTest

* Add possibility to set execution path by using the context

* Reenable test after related issue 228 has been merged

* Replace ternary with regular if

* Add missing javadoc

* Add missing javadoc

* remove unnecessary semicolon

* Fix spelling typo

* Minor test changes

* Refactoring FileExtractor class for more modularity

* using const

* Add missing extensions

* Remove unnecessary execption declaration and minor rename

* Fix spelling

* Add javadoc

* Forget dot

* minor change

* Revert "minor change"

This reverts commit ec81c3ce6.

* Revert "Merge branch 'main' into feature/208-MockOutToolRepoRefactorTestInfra"

This reverts commit d58847230, reversing
changes made to f38b3105f.

* Revert "Revert "Merge branch 'main' into feature/208-MockOutToolRepoRefactorTestInfra""

This reverts commit 3e49a0b3d.

* Revert "Revert "minor change""

This reverts commit 2f7b94624.

* fix typo

* #208: review and complete rework

* #208: improved system path

* #208: found and fixed bug on windows

* #208: improve OS mocking

* #208: improve test logging

reveal logs/errors so the developer actually sees what is happening instead of leaving them in the dark

* #208: improve OS detection

* #208: fixed

found and fixed bug in MacOS app detection for JMC, fixed copy file to folder bug, moved !extract logic back to FileAccess, f... (continued)

1580 of 2930 branches covered (53.92%)

Branch coverage included in aggregate %.

4047 of 6619 relevant lines covered (61.14%)

2.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
cli/src/main/java/com/devonfw/tools/ide/log/IdeLogLevel.java
1
package com.devonfw.tools.ide.log;
2

3
import com.devonfw.tools.ide.context.IdeContext;
4

5
/**
6
 * {@link Enum} with the available log-levels.
7
 *
8
 * @see IdeContext#level(IdeLogLevel)
9
 */
10
public enum IdeLogLevel {
3✔
11

12
  /** {@link IdeLogLevel} for tracing (very detailed and verbose logging). */
13
  TRACE("\033[38;5;240m"),
7✔
14

15
  /** {@link IdeLogLevel} for debugging (more detailed logging). */
16
  DEBUG("\033[90m"),
7✔
17

18
  /** {@link IdeLogLevel} for general information (regular logging). */
19
  INFO(null),
7✔
20

21
  /**
22
   * {@link IdeLogLevel} for a step (logs the step name and groups the following log statements until the next step).
23
   */
24
  STEP("\033[35m"),
7✔
25

26
  /** {@link IdeLogLevel} for user interaction (e.g. questions or options). */
27
  INTERACTION("\033[96m"),
7✔
28

29
  /** {@link IdeLogLevel} for success (an important aspect has been completed successfully). */
30
  SUCCESS("\033[92m"),
7✔
31

32
  /** {@link IdeLogLevel} for a warning (something unexpected or abnormal happened but can be compensated). */
33
  WARNING("\033[93m"),
7✔
34

35
  /**
36
   * {@link IdeLogLevel} for an error (something failed and we cannot proceed or the user has to continue with extreme
37
   * care).
38
   */
39
  ERROR("\033[91m");
7✔
40

41
  private final String color;
42

43
  /**
44
   * The constructor.
45
   */
46
  private IdeLogLevel(String color) {
4✔
47

48
    this.color = color;
3✔
49
  }
1✔
50

51
  /**
52
   * @return the prefix to append for colored output to set color according to this {@link IdeLogLevel}.
53
   */
54
  public String getStartColor() {
55

56
    return this.color;
3✔
57
  }
58

59
  /**
60
   * @return the suffix to append for colored output to reset to default color.
61
   */
62
  public String getEndColor() {
63

64
    return "\033[0m"; // reset color
×
65
  }
66

67
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc