feat(ci): shard test suite and enable JUnit 5 parallel execution (#4977)

This commit is contained in:
James Rich 2026-04-03 08:08:49 -05:00 committed by GitHub
parent 7e041c00e1
commit 51251ab16a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
80 changed files with 438 additions and 2730 deletions

View file

@ -1,51 +0,0 @@
/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.meshtastic.core.network
class SerialTransportTest {
/*
private val mockService: RadioInterfaceService = mockk(relaxed = true)
@Test
fun testJSerialCommIsAvailable() {
val ports = SerialPort.getCommPorts()
assertNotNull(ports, "Serial ports array should not be null")
}
@Test
fun testSerialTransportImplementsRadioTransport() {
val transport: RadioTransport = SerialTransport("dummyPort", service = mockService)
assertTrue(transport is SerialTransport, "Transport should be a SerialTransport")
}
@Test
fun testGetAvailablePorts() {
val ports = SerialTransport.getAvailablePorts()
assertNotNull(ports, "Available ports should not be null")
}
@Test
fun testConnectToInvalidPortFailsGracefully() {
val transport = SerialTransport("invalid_port_name", 115200, mockService)
val connected = transport.startConnection()
assertFalse(connected, "Connecting to an invalid port should return false")
transport.close()
}
*/
}

View file

@ -18,7 +18,7 @@ package org.meshtastic.core.network.repository
import app.cash.turbine.test
import kotlinx.coroutines.test.runTest
import org.junit.Test
import kotlin.test.Test
import kotlin.test.assertNotNull
import kotlin.test.assertTrue