Skip to content

Commit

Permalink
InputHandler Unit Tests
Browse files Browse the repository at this point in the history
* Testing request types
** GetAllConversationDataRequest
** GetConversationsRequest
** UpdateHistoryRequests
** UpdateHistoryRequests
** DeleteFriendRequests
** DeleteFriendRequests
** LogoutRequests
** UpdateHistoryRequests
** SearchUsersRequests
** UserNameAvailableRequests
* Made AddParticipantRequest tests verify users gets the conversation id
* Made some utility functions for testing
* Removed print statements
* Made sure that responses of requests are tested
* Deleted unused libraries
* Removed build.bat file
* Removed external libraries, run and build shell scripts
* Installed pitest plugin
* Improved tests with the help of pitest
  • Loading branch information
Zargess authored and miniwolf committed Nov 24, 2024
1 parent 1f5de7c commit 256f479
Show file tree
Hide file tree
Showing 240 changed files with 1,735 additions and 15,215 deletions.
49 changes: 0 additions & 49 deletions build.bat

This file was deleted.

27 changes: 23 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,30 +1,49 @@
import com.fagi.test.TestResultsService
import info.solidsoft.gradle.pitest.PitestPluginExtension
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
id("info.solidsoft.pitest") version "1.15.0" apply false
}

allprojects {
group = "com.fagi"
version = "1.0-snapshot"
}

subprojects {
apply(plugin = "java")

repositories {
mavenCentral()
}
apply(plugin = "info.solidsoft.pitest")

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_21.toString()
targetCompatibility = JavaVersion.VERSION_21.toString()
}

configure<PitestPluginExtension> {
threads.set(4)
outputFormats.set(listOf("XML", "HTML"))
exportLineCoverage.set(true)
timestampedReports.set(false)
junit5PluginVersion.set("1.2.1")
verbose.set(false)

if (project.name in listOf("shared")) {
failWhenNoMutations = false
}
}
}

// Register the custom build service
val testResultsServiceProvider = gradle.sharedServices.registerIfAbsent("testResultsService", TestResultsService::class.java) {}

// Configure all projects to use the custom build service
allprojects {
repositories {
mavenCentral()
}

tasks.withType<Test> {
testLogging {
events = setOf(
Expand Down
24 changes: 0 additions & 24 deletions build_linux.sh

This file was deleted.

24 changes: 0 additions & 24 deletions build_osx.sh

This file was deleted.

Binary file removed external/gson-2.7.jar
Binary file not shown.
37 changes: 0 additions & 37 deletions external/javafx/linux/legal/javafx.base/ADDITIONAL_LICENSE_INFO

This file was deleted.

27 changes: 0 additions & 27 deletions external/javafx/linux/legal/javafx.base/ASSEMBLY_EXCEPTION

This file was deleted.

Loading

0 comments on commit 256f479

Please sign in to comment.