였λ₯˜ 및 ν•΄κ²°

[JUnit] command line is too long. shorten command line for or also for junit default configuration

Jo__y 2022. 10. 5. 15:26

문제 λ°œμƒ

Intellij μ—μ„œ Junit Test λ₯Ό ν•˜λ €κ³  ν–ˆλŠ”λ° κ°‘μžκΈ° μ•„λž˜μ™€ 같은 μ—λŸ¬κ°€ λ°œμƒν–ˆλ‹€. 

문제 ν•΄κ²°

shorten command line 을 μ„€μ •ν•΄μ£Όμ§€ μ•Šμ•˜μ„ 경우, ν…ŒμŠ€νŠΈλ₯Ό μ‹€ν–‰ν•˜λŠ” λͺ…λ Ήμ–΄ 라인이 λ„ˆλ¬΄ κΈΈμ–΄μ„œ

μƒκΈ°λŠ” 였λ₯˜λΌ ν•˜λ©° ꡬ글 검색을 톡해 ν•΄κ²°ν•  수 μžˆμ—ˆλ‹€.

 

ν…ŒμŠ€νŠΈλ³„λ‘œ 섀정을 ν•  수 μžˆμ§€λ§Œ, ν…ŒμŠ€νŠΈλ₯Ό μΆ”κ°€ν•  λ•Œλ§ˆλ‹€ 섀정도 ν•¨κ»˜ ν•΄μ•Όν•˜λŠ” λ²ˆκ±°λ‘œμ›€μ„ λœκΈ°μœ„ν•΄ 

default 둜 μ„€μ •ν•˜μ˜€λ‹€. 

 

1. Run   => Edit Configurations 클릭

2. μ™Όμͺ½ ν•˜λ‹¨μ— Edit configuration templates..  => JUnit μ—μ„œ 였λ₯Έμͺ½ μƒλ‹¨μ˜ Modify options ν΄λ¦­

3. Shorten command line 을 μ„ νƒν•œλ‹€.

4. JAR manifest λ₯Ό 선택 ν›„ 적용 μ‹œν‚¨λ‹€.

 

 ν…ŒμŠ€νŠΈκ°€ μ •μƒμ μœΌλ‘œ μ‹€ν–‰λ˜μ—ˆλ‹€. 

 

 

μ°Έκ³ 

https://velog.io/@chominho96/Spring-Intellij-Intellij-IDEA-%ED%85%8C%EC%8A%A4%ED%8A%B8-%EC%8B%9C-Command-line-is-too-long-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0

λ°˜μ‘ν˜•