Skip to content
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

fix: close inputStream to avoid resource leaks #1025

Merged
merged 2 commits into from
Aug 20, 2024

fix: Address the PR comments

7506a62
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

fix: close inputStream to avoid resource leaks #1025

fix: Address the PR comments
7506a62
Select commit
Loading
Failed to load commit list.
GitHub Actions / Linux Test Reports failed Aug 7, 2024 in 0s

260 passed, 1 failed and 8 skipped

Tests failed

Report Passed Failed Skipped Time
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.actions.test.ApplyTargetJobTest.xml 5✔️ 124ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.build.test.EspIdfErrorParserTest.xml 3✔️ 40ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.ActiveLaunchConfigurationTest.xml 2✔️ 152ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.DefaultBoardProviderTest.xml 14✔️ 71ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.IDFVersionReaderTest.xml 4✔️ 501ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.InputStreamThreadReaderTest.xml 7✔️ 23ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.OpenocdVariableResolverTest.xml 5✔️ 842ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.OutputStreamThreadTest.xml 5✔️ 27ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.ProcessBuilderFactoryTest.xml 8✔️ 29ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.VersionTest.xml 29✔️ 43ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.ZipUtilityTest.xml 5✔️ 27ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.unittest.DefaultSystemWrapperTest.xml 2✔️ 2ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.unittest.ExecutableFinderTest.xml 7✔️ 8✖️ 18ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.BigIntDecoderTest.xml 41✔️ 81ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.HintsUtilTest.xml 4✔️ 103ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.LaunchBarNameUtilTest.xml 6✔️ 119ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.LaunchConfigFinderTest.xml 6✔️ 266ms
tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.NvsBeanValidatorTest.xml 88✔️ 95ms
tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.EspressifMenuTest.xml 1✔️ 5s
tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.executable.cases.launchconfiguration.LaunchBarCDTConfigurationsTest.xml 2✔️ 22s
tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectSBOMTest.xml 7✔️ 295s
tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectTest.xml 9✔️ 1❌ 332s

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.actions.test.ApplyTargetJobTest.xml

5 tests were completed in 124ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.actions.test.ApplyTargetJobTest 5✔️ 124ms

✔️ com.espressif.idf.core.actions.test.ApplyTargetJobTest

✔️ run whenTargetNameIsEmpty shouldReturnOkStatus
✔️ run whenCoreExceptionThrown shouldReturnCancelStatus
✔️ run whenSuitableTargetFound shouldSetActiveLaunchTarget
✔️ run whenActiveLaunchConfigurationIsNull shouldReturnCancelStatus
✔️ run whenNoSuitableTargetFound shouldShowNoTargetMessage

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.build.test.EspIdfErrorParserTest.xml

3 tests were completed in 40ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.build.test.EspIdfErrorParserTest 3✔️ 40ms

✔️ com.espressif.idf.core.build.test.EspIdfErrorParserTest

✔️ shutdown should trigger property change listener with error hints pairs as new value
✔️ process line returns true if hint available for error line
✔️ process line returns false if no hint found for error line

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.ActiveLaunchConfigurationTest.xml

2 tests were completed in 152ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.ActiveLaunchConfigurationTest 2✔️ 152ms

✔️ com.espressif.idf.core.test.ActiveLaunchConfigurationTest

✔️ get active launch configuration returns expected config when init launchbar job is not active
✔️ get active launch configuration returns expected config when init launchbar job is active

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.DefaultBoardProviderTest.xml

14 tests were completed in 71ms with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.DefaultBoardProviderTest 14✔️ 71ms

✔️ com.espressif.idf.core.test.DefaultBoardProviderTest

✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[1] esp32s3, [ESP32-S3 chip (via ESP-PROG), ESP32-S3 chip (via ESP USB Bridge), ESP32-S3 chip (via builtin USB-JTAG)], 2
✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[2] esp32c3, [ESP32-C3 chip (via ESP USB Bridge), ESP32-C3 chip (via builtin USB-JTAG), ESP32-C3 chip (via ESP-PROG)], 1
✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[3] esp32, [ESP-WROVER-KIT 1.8V, ESP32 chip (via ESP USB Bridge), ESP-WROVER-KIT 3.3V], 0
✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[4] esp32s2, [ESP32-S2 chip (via ESP USB Bridge), ESP32-S2-KALUGA-1, ESP32-S2 chip (via ESP-PROG)], 0
✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[5] esp32c2, [ESP32-C2 chip (via ESP-PROG), ESP32-C2 chip (via ESP USB Bridge)], 0
✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[6] esp32c6, [ESP32-C6 chip (via builtin USB-JTAG), ESP32-C6 chip (via ESP-PROG), ESP32-C6 chip (via ESP USB Bridge)], 0
✔️ getIndexOfDefaultBoard returns expected index for esp32s3 target (String, String[], int)[7] esp32h2, [ESP32-H2 chip (via ESP-PROG), ESP32-H2 chip (via ESP USB Bridge), ESP32-H2 chip (via builtin USB-JTAG)], 0
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[1] esp32s3, [ESP32-S3 chip (via ESP-PROG), ESP32-S3 chip (via ESP USB Bridge), ESP32-S3 chip (via builtin USB-JTAG)], 2
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[2] esp32c3, [ESP32-C3 chip (via ESP USB Bridge), ESP32-C3 chip (via builtin USB-JTAG), ESP32-C3 chip (via ESP-PROG)], 1
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[3] esp32, [ESP-WROVER-KIT 1.8V, ESP32 chip (via ESP USB Bridge), ESP-WROVER-KIT 3.3V], 0
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[4] esp32s2, [ESP32-S2 chip (via ESP USB Bridge), ESP32-S2-KALUGA-1, ESP32-S2 chip (via ESP-PROG)], 0
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[5] esp32c2, [ESP32-C2 chip (via ESP-PROG), ESP32-C2 chip (via ESP USB Bridge)], 0
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[6] esp32c6, [ESP32-C6 chip (via builtin USB-JTAG), ESP32-C6 chip (via ESP-PROG), ESP32-C6 chip (via ESP USB Bridge)], 0
✔️ getIndexOfDefaultBoard ignores case for target and returns expected result (String, String[], int)[7] esp32h2, [ESP32-H2 chip (via ESP-PROG), ESP32-H2 chip (via ESP USB Bridge), ESP32-H2 chip (via builtin USB-JTAG)], 0

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.IDFVersionReaderTest.xml

4 tests were completed in 501ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.IDFVersionReaderTest 4✔️ 501ms

✔️ com.espressif.idf.core.test.IDFVersionReaderTest

✔️ testCanItDiscardversion335
✔️ testCanGetVersionsMap
✔️ testCanGetVersionsFromDLEspressif
✔️ testIsVersionsFilterWorkingCorrectly

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.InputStreamThreadReaderTest.xml

7 tests were completed in 23ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.InputStreamThreadReaderTest 7✔️ 23ms

✔️ com.espressif.idf.core.test.InputStreamThreadReaderTest

✔️ testShouldReadInputStreamWithDefaultCharsetName
✔️ testShouldReadInputStreamWithCustomCharsetName
✔️ testShouldReadInputStreamAndReturnExpectedResult
✔️ testShouldThrowExceptionForNullInputStreamInConstructor
✔️ testShouldThrowExceptionForNullNewLineSeparatorInConstructor
✔️ testShouldReturnEmptyResultOnIOException
✔️ testShouldReturnEmptyResultForEmptyInputStream

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.OpenocdVariableResolverTest.xml

5 tests were completed in 842ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.OpenocdVariableResolverTest 5✔️ 842ms

✔️ com.espressif.idf.core.test.OpenocdVariableResolverTest

✔️ resolveValue on openocd path dynamic variable returns openocd path
✔️ resolveValue on openocd scripts dynamic variable returns openocd scripts
✔️ resolveValue on openocd exe dynamic variable returns openocd exe
✔️ resolveValue on non existing enum variable returns variable name
✔️ resolveValue on null throws exception

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.OutputStreamThreadTest.xml

5 tests were completed in 27ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.OutputStreamThreadTest 5✔️ 27ms

✔️ com.espressif.idf.core.test.OutputStreamThreadTest

✔️ testOutputStreamShouldBeEmptyIfIncorrectCharsetSent
✔️ testOutputStreamThreadWithNullOutputStreamShouldThrowException
✔️ testOutputStreamThreadShouldWriteContentToOutputStream
✔️ testOutputStreamThreadWithDefaultCharsetShouldWriteContentToOutputStream
✔️ testOutputStreamThreadWithNullContentStreamShouldThrowException

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.ProcessBuilderFactoryTest.xml

8 tests were completed in 29ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.ProcessBuilderFactoryTest 8✔️ 29ms

✔️ com.espressif.idf.core.test.ProcessBuilderFactoryTest

✔️ testRunInBackgroundShouldReturnOkStatusWithAllCorrectArguments
✔️ testRunShouldReturnEmptyResultWithDummyCommandAndNullWorkingDir
✔️ testRunShouldReturnEmptyResultWithDummyCommandAndEmptyEnviromentMap
✔️ testRunInBackgroundShouldReturnOkStatusWithOnlyDummyCommand
✔️ testRunShouldReturnEmptyResultWithDummyCommandAndWithAllArguments
✔️ testRunShouldThrowExceptionWithIncorrectWorkingDir
✔️ testRunShouldThrowExceptionWithNonExistingFileCommand
✔️ testRunShouldReturnEmptyResultWithDummyCommandWithNullEnviromentMap

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.VersionTest.xml

29 tests were completed in 43ms with 29 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.VersionTest 29✔️ 43ms

✔️ com.espressif.idf.core.test.VersionTest

✔️ Generating hash code for versions should return the same hash code for equal versions
✔️ Equals method should return false when comparing with a different object type
✔️ Comparing version 1.2 to higher version with different numbers of segments ruturns negative[1] 1.2.3
✔️ Comparing version 1.2 to higher version with different numbers of segments ruturns negative[2] 1.2.3.4
✔️ Comparing version 1.2 to higher version with different numbers of segments ruturns negative[3] 1.5.1
✔️ Get version should return the correct version string
✔️ Creating version with null value should throw an IllegalArgumentException
✔️ Equals method should return false when comparing with null
✔️ Comparing different versions for equality should return false
✔️ Hash code should be consistent for the same version object
✔️ Comparing version with itself should return zero
✔️ Comparing same versions for equality should return true
✔️ Comparing version 1.2.3 to higher versions should return negative[1] 1.2.4
✔️ Comparing version 1.2.3 to higher versions should return negative[2] 1.2.4
✔️ Comparing version 1.2.3 to higher versions should return negative[3] 1.3
✔️ Comparing version 1.2.3 to higher versions should return negative[4] 1.2.3.4
✔️ Equals method should return true when comparing object to itself
✔️ Comparing version 1.2.3 to lower versions should return positive[1] 1.2.2
✔️ Comparing version 1.2.3 to lower versions should return positive[2] 1.2.1
✔️ Comparing version 1.2.3 to lower versions should return positive[3] 1.2
✔️ Comparing version 1.2.3 to lower versions should return positive[4] 1.2.1.1
✔️ Comparing version 1.2.3 to lower versions should return positive[5] 1.1
✔️ Comparing version 1.2 to lower version with different numbers of segments ruturns positive[1] 1.1.4
✔️ Comparing version 1.2 to lower version with different numbers of segments ruturns positive[2] 1.1
✔️ Comparing version 1.2 to lower version with different numbers of segments ruturns positive[3] 1.0.5
✔️ Creating version with an invalid format should throw an IllegalArgumentException
✔️ Comparing same versions should return 0
✔️ Hash code should be different for different version objects
✔️ Comparing null version should return a positive result

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.test.ZipUtilityTest.xml

5 tests were completed in 27ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.test.ZipUtilityTest 5✔️ 27ms

✔️ com.espressif.idf.core.test.ZipUtilityTest

✔️ decompress should extract files from zip to output directory (Path)
✔️ decompress nested directories should extract nested files (Path)
✔️ decompress non zip file returns true (Path)
✔️ decompress folder returns false (Path)
✔️ decompress non existent zip file returns false (Path)

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.unittest.DefaultSystemWrapperTest.xml

2 tests were completed in 2ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.unittest.DefaultSystemWrapperTest 2✔️ 2ms

✔️ com.espressif.idf.core.unittest.DefaultSystemWrapperTest

✔️ testGetEnvExecutables
✔️ testGetPathEnv

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.unittest.ExecutableFinderTest.xml

15 tests were completed in 18ms with 7 passed, 0 failed and 8 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.unittest.ExecutableFinderTest 7✔️ 8✖️ 18ms

✔️ com.espressif.idf.core.unittest.ExecutableFinderTest

✖️ testWindowsReturnsNullWhenSystemReturnsIncorrectExecutable
✖️ testWindowsFindReturnsNullOnNull
✔️ testUnixFindReturnsNullOnNull
✖️ testWindowsFindReturnsNullOnFoundableNonExecutable
✔️ testUnixFindReturnsNullOnFoundableNonExecutable
✖️ testWindowsFindReturnsNullOnNonFoundableExecutable
✖️ testWindowsFindReturnsNullWithEmpyPathExt
✔️ testUnixFindReturnsNullOnNonFoundableExecutable
✔️ testUnixFindReturnsNullWithEmpyPath
✔️ testUnixFindReturnsNullOnNonFoundableNonExecutable
✖️ testWindowsFindReturnsNullOnNonFoundableNonExecutable
✖️ testWindowsFindReturnsExpectedResultOnFoundableExecutable
✔️ testUnixFindReturnsExpectedResultOnFoundableExecutable
✔️ testUnixFindReturnsExpectedResultWithEmpyPathExt
✖️ testWindowsFindReturnsNullWithEmpyPath

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.BigIntDecoderTest.xml

41 tests were completed in 81ms with 41 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.util.test.BigIntDecoderTest 41✔️ 81ms

✔️ com.espressif.idf.core.util.test.BigIntDecoderTest

✔️ test decode positive hexadecimal number (String, int) value '0xA3F' decoded to 2623
✔️ test decode positive hexadecimal number (String, int) value '0XA3F' decoded to 2623
✔️ test decode positive hexadecimal number (String, int) value '0xAA' decoded to 170
✔️ test decode positive hexadecimal number (String, int) value '0XFF' decoded to 255
✔️ test decode negative dec number (String, int) value '-12345' decoded to -12345
✔️ test decode negative dec number (String, int) value '-234' decoded to -234
✔️ test decode negative dec number (String, int) value '-564' decoded to -564
✔️ test decode invalid number
✔️ test decode positive dec number (String, int) value '12345' decoded to 12345
✔️ test decode positive dec number (String, int) value '234' decoded to 234
✔️ test decode positive dec number (String, int) value '564' decoded to 564
✔️ test decode negative hexadecimal number (String, int) value '-0xA3F' decoded to -2623
✔️ test decode negative hexadecimal number (String, int) value '-0XA3F' decoded to -2623
✔️ test decode negative hexadecimal number (String, int) value '-0xAA' decoded to -170
✔️ test decode negative hexadecimal number (String, int) value '-0XFF' decoded to -255
✔️ test decode positive dec with sign number (String, int) value '+12345' decoded to 12345
✔️ test decode positive dec with sign number (String, int) value '+234' decoded to 234
✔️ test decode positive dec with sign number (String, int) value '+564' decoded to 564
✔️ test decode positive hexadecimal hash number (String, int) value '#A3F' decoded to 2623
✔️ test decode positive hexadecimal hash number (String, int) value '#A3F' decoded to 2623
✔️ test decode positive hexadecimal hash number (String, int) value '#AA' decoded to 170
✔️ test decode positive hexadecimal hash number (String, int) value '#FF' decoded to 255
✔️ test decode positive octal number (String, int) value '017' decoded to 15
✔️ test decode positive octal number (String, int) value '023' decoded to 19
✔️ test decode positive octal number (String, int) value '075' decoded to 61
✔️ test decode positive octal number (String, int) value '0127' decoded to 87
✔️ test decode positive octal number (String, int) value '0456' decoded to 302
✔️ test decode positive with sign hexadecimal number (String, int) value '+0xA3F' decoded to 2623
✔️ test decode positive with sign hexadecimal number (String, int) value '+0XA3F' decoded to 2623
✔️ test decode positive with sign hexadecimal number (String, int) value '+0xAA' decoded to 170
✔️ test decode positive with sign hexadecimal number (String, int) value '+0XFF' decoded to 255
✔️ test decode negative octal number (String, int) value '-017' decoded to -15
✔️ test decode negative octal number (String, int) value '-023' decoded to -19
✔️ test decode negative octal number (String, int) value '-075' decoded to -61
✔️ test decode negative octal number (String, int) value '-0127' decoded to -87
✔️ test decode negative octal number (String, int) value '-0456' decoded to -302
✔️ test decode positive with sign octal number (String, int) value '+017' decoded to 15
✔️ test decode positive with sign octal number (String, int) value '+023' decoded to 19
✔️ test decode positive with sign octal number (String, int) value '+075' decoded to 61
✔️ test decode positive with sign octal number (String, int) value '+0127' decoded to 87
✔️ test decode positive with sign octal number (String, int) value '+0456' decoded to 302

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.HintsUtilTest.xml

4 tests were completed in 103ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.util.test.HintsUtilTest 4✔️ 103ms

✔️ com.espressif.idf.core.util.test.HintsUtilTest

✔️ getHintsYmlPath returns correct hints yml path
✔️ getReHintsList returns simplified entries
✔️ getReHintsList returns empty array when not existing path is provided
✔️ getReHintsList returns correct parsed list

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.LaunchBarNameUtilTest.xml

6 tests were completed in 119ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.util.test.LaunchBarNameUtilTest 6✔️ 119ms

✔️ com.espressif.idf.core.util.test.LaunchBarNameUtilTest

✔️ saveTargetName should save provided target
✔️ findSuitableTargetForSelectedItem should return launch target with correct port when multiple launch target with same name exist
✔️ findLaunchTargetByName should return correct launch target
✔️ findSuitableTargetForSelectedItem should return correct launch target
✔️ findSuitableTargetForSelectedItem should return launch target even if target has incorrect port
✔️ findSuitableTargetForSelectedItem should return empty optional

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.LaunchConfigFinderTest.xml

6 tests were completed in 266ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.util.test.LaunchConfigFinderTest 6✔️ 266ms

✔️ com.espressif.idf.core.util.test.LaunchConfigFinderTest

✔️ testFindExistingLaunchConfiguration_NoMatchingName
✔️ testFindAppropriateDebugConfig
✔️ testFindAppropriateDebugConfig_NoMappedResources
✔️ testFindAppropriateDebugConfig_MappedResourcesAreEmpty
✔️ testFindExistingLaunchConfiguration
✔️ testFindAppropriateDebugConfig_NoMatchingType

✔️ tests/com.espressif.idf.core.test/target/surefire-reports/TEST-com.espressif.idf.core.util.test.NvsBeanValidatorTest.xml

88 tests were completed in 95ms with 88 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.core.util.test.NvsBeanValidatorTest 88✔️ 95ms

✔️ com.espressif.idf.core.util.test.NvsBeanValidatorTest

✔️ validate valid integer in range returns empty string (String, String)[1] u8, 0
✔️ validate valid integer in range returns empty string (String, String)[2] u8, 120
✔️ validate valid integer in range returns empty string (String, String)[3] u8, 255
✔️ validate valid integer in range returns empty string (String, String)[4] i8, -128
✔️ validate valid integer in range returns empty string (String, String)[5] i8, 0
✔️ validate valid integer in range returns empty string (String, String)[6] i8, 120
✔️ validate valid integer in range returns empty string (String, String)[7] i8, 127
✔️ validate valid integer in range returns empty string (String, String)[8] u16, 0
✔️ validate valid integer in range returns empty string (String, String)[9] u16, 360
✔️ validate valid integer in range returns empty string (String, String)[10] u16, 65535
✔️ validate valid integer in range returns empty string (String, String)[11] i16, -32768
✔️ validate valid integer in range returns empty string (String, String)[12] i16, 0
✔️ validate valid integer in range returns empty string (String, String)[13] i16, 120
✔️ validate valid integer in range returns empty string (String, String)[14] i16, 32767
✔️ validate valid integer in range returns empty string (String, String)[15] u32, 0
✔️ validate valid integer in range returns empty string (String, String)[16] u32, 1000
✔️ validate valid integer in range returns empty string (String, String)[17] u32, 4294967295
✔️ validate valid integer in range returns empty string (String, String)[18] i32, -2147483648
✔️ validate valid integer in range returns empty string (String, String)[19] i32, 9
✔️ validate valid integer in range returns empty string (String, String)[20] i32, 2147483647
✔️ validate valid integer in range returns empty string (String, String)[21] u64, 0
✔️ validate valid integer in range returns empty string (String, String)[22] u64, 2000
✔️ validate valid integer in range returns empty string (String, String)[23] u64, 18446744073709551615
✔️ validate valid integer in range returns empty string (String, String)[24] i64, -9223372036854775808
✔️ validate valid integer in range returns empty string (String, String)[25] i64, 3000
✔️ validate valid integer in range returns empty string (String, String)[26] i64, 9223372036854775807
✔️ validate non integer number returns validation error
✔️ validate empty value with type other then namespace returns validation error (String)[1] file
✔️ validate empty value with type other then namespace returns validation error (String)[2] data
✔️ validate empty value with type other then namespace returns validation error (String)[3] namespace
✔️ validate key longer then 15 returns validation error
✔️ validate out of limit value with data type and string encoding returns validation error
✔️ validate empty type returns empty string
✔️ validate first bean with type other then namespace returns validation error
✔️ validate non empty value with type namespace returns validation error
✔️ validate valid value with data type and binary encoding returns empty string
✔️ validate supported encoding returns empty string (String, String)[1] file, hex2bin
✔️ validate supported encoding returns empty string (String, String)[2] file, base64
✔️ validate supported encoding returns empty string (String, String)[3] file, string
✔️ validate supported encoding returns empty string (String, String)[4] file, binary
✔️ validate supported encoding returns empty string (String, String)[5] data, u8
✔️ validate supported encoding returns empty string (String, String)[6] data, i8
✔️ validate supported encoding returns empty string (String, String)[7] data, u16
✔️ validate supported encoding returns empty string (String, String)[8] data, i16
✔️ validate supported encoding returns empty string (String, String)[9] data, u32
✔️ validate supported encoding returns empty string (String, String)[10] data, i32
✔️ validate supported encoding returns empty string (String, String)[11] data, u64
✔️ validate supported encoding returns empty string (String, String)[12] data, i64
✔️ validate supported encoding returns empty string (String, String)[13] data, string
✔️ validate supported encoding returns empty string (String, String)[14] data, hex2bin
✔️ validate supported encoding returns empty string (String, String)[15] data, base64
✔️ validate supported encoding returns empty string (String, String)[16] namespace,
✔️ validate supported encoding returns empty string (String, String)[17] ,
✔️ validate empty key returns validation error
✔️ validate not specified index returns empty string
✔️ validate with empty value with type namespace returns empty string
✔️ validate value with type file returns empty string (String)[1] C:
✔️ validate value with type file returns empty string (String)[2] test
✔️ validate value with type file returns empty string (String)[3] file.exe
✔️ validate out of limit value with data type and binary encoding returns validation error
✔️ validate not supported encoding returns validation error
✔️ validate first with namespace type returns empty string
✔️ validate data value with non existing encoding returns empty string
✔️ validate valid value with data type and string encoding returns empty string
✔️ validate valid key returns empty string
✔️ validate valid integer out of range returns validation error (String, String)[1] u8, -1
✔️ validate valid integer out of range returns validation error (String, String)[2] u8, -20
✔️ validate valid integer out of range returns validation error (String, String)[3] u8, 256
✔️ validate valid integer out of range returns validation error (String, String)[4] i8, -129
✔️ validate valid integer out of range returns validation error (String, String)[5] i8, -150
✔️ validate valid integer out of range returns validation error (String, String)[6] i8, 150
✔️ validate valid integer out of range returns validation error (String, String)[7] i8, 128
✔️ validate valid integer out of range returns validation error (String, String)[8] u16, -1
✔️ validate valid integer out of range returns validation error (String, String)[9] u16, -50
✔️ validate valid integer out of range returns validation error (String, String)[10] u16, 65536
✔️ validate valid integer out of range returns validation error (String, String)[11] i16, -32769
✔️ validate valid integer out of range returns validation error (String, String)[12] i16, -2147483649
✔️ validate valid integer out of range returns validation error (String, String)[13] i16, -38000
✔️ validate valid integer out of range returns validation error (String, String)[14] i16, 32768
✔️ validate valid integer out of range returns validation error (String, String)[15] u32, -1
✔️ validate valid integer out of range returns validation error (String, String)[16] u32, -1000
✔️ validate valid integer out of range returns validation error (String, String)[17] u32, 4294967296
✔️ validate valid integer out of range returns validation error (String, String)[18] i32, -2147483649
✔️ validate valid integer out of range returns validation error (String, String)[19] i32, 2147483648
✔️ validate valid integer out of range returns validation error (String, String)[20] u64, -1
✔️ validate valid integer out of range returns validation error (String, String)[21] u64, 18446744073709551616
✔️ validate valid integer out of range returns validation error (String, String)[22] i64, -9223372036854775809
✔️ validate valid integer out of range returns validation error (String, String)[23] i64, 9223372036854775808

✔️ tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.EspressifMenuTest.xml

1 tests were completed in 5s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.ui.test.EspressifMenuTest 1✔️ 5s

✔️ com.espressif.idf.ui.test.EspressifMenuTest

✔️ testProductInformation

✔️ tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.executable.cases.launchconfiguration.LaunchBarCDTConfigurationsTest.xml

2 tests were completed in 22s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.ui.test.executable.cases.launchconfiguration.LaunchBarCDTConfigurationsTest 2✔️ 22s

✔️ com.espressif.idf.ui.test.executable.cases.launchconfiguration.LaunchBarCDTConfigurationsTest

✔️ creatingNewEspLaunchTarget
✔️ givenNewProjectFromTemplateIsCreatedThenTheLaunchBarHasLaunchDescriptorAddedWithProjectName

✔️ tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectSBOMTest.xml

7 tests were completed in 295s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectSBOMTest 7✔️ 295s

✔️ com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectSBOMTest

✔️ givenNewProjectCreatedBuiltWhenOpenSbomAndAddBackSlashToProjectDescriptionPathThenCheckPathValidation
✔️ givenNewProjectCreatedBuiltWhenOpenSbomAndAddSpaceToOutputFilePathThenCheckPathValidation
✔️ givenNewProjectCreatedBuiltWhenOpenSbomAndAddSpaceToProjectDescriptionPathThenCheckPathValidation
✔️ givenNewProjectCreatedBuiltWhenOpenSbomAndCleanProjectDescriptionPathThenCheckPathValidation
✔️ givenNewProjectCreatedBuiltWhenRunSBOMtoolRedirectOutputToFileThenCheckConsoleAndSbomFile
✔️ givenNewProjectCreatedBuiltWhenRunSbomThenSbomIsGeneratedInConsole
✔️ givenNewProjectCreatedNotBuiltWhenOpenSbomThenSbomIsDisabled

❌ tests/com.espressif.idf.ui.test/target/surefire-reports/TEST-com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectTest.xml

10 tests were completed in 332s with 9 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectTest 9✔️ 1❌ 332s

❌ com.espressif.idf.ui.test.executable.cases.project.NewEspressifIDFProjectTest

✔️ givenNewIDFProjectIsCreatedAndBuiltUsingContextMenuOnProjectThenProjectIsCreatedAndBuilt
✔️ givenNewIDFProjectIsCreatedAndBuiltUsingToolbarButtonThenProjectIsBuilt
✔️ givenNewIDFProjectIsSelectedFromTemplateThenProjectIsCreatedAndAddedToProjectExplorerWithRequiredFiles
✔️ givenNewIDFProjectIsSelectedThenProjectIsCreatedAndAddedToProjectExplorer
✔️ givenNewProjectCreatedAndRenamedAfterThenProjectIsBuildSuccessfully
✔️ givenNewProjectCreatedBuiltAndThenProjectCleanUsingContextMenu
✔️ givenNewProjectCreatedBuiltAndThenProjectFullCleanUsingContextMenu
✔️ givenNewProjectCreatedBuiltAndThenProjectPythonCleanUsingContextMenu
❌ givenNewProjectCreatedDfuBuiltThenHasDfuBin
	java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
✔️ givenNewProjectCreatedThenInstallNewComponent