Skip to content
Snippets Groups Projects
Commit 2fd115ad authored by William Walker's avatar William Walker
Browse files

wip

parent 74467a25
No related tags found
No related merge requests found
Showing
with 27 additions and 12 deletions
......@@ -19,19 +19,34 @@ package edu.ucsc.its.temerity.test.konsist
import com.lemonappdev.konsist.api.Konsist
import com.lemonappdev.konsist.api.container.KoScope
import com.lemonappdev.konsist.api.ext.koscope.declarationsOf
import com.lemonappdev.konsist.api.ext.provider.hasValidKDocParamTags
import com.lemonappdev.konsist.api.provider.KoKDocProvider
import com.lemonappdev.konsist.api.verify.assertTrue
import io.kotest.core.spec.style.FunSpec
class TestKonsistTest : FunSpec() {
class LibraryArchitectureAssertion: FunSpec() {
private lateinit var konsist: KoScope
init {
beforeSpec {
konsist = Konsist.scopeFromProject()
}
test("TestKonsistTest") {
test("Each api declaration has kdoc") {
Konsist
.scopeFromProject("..api..")
.declarationsOf<KoKDocProvider>()
.assertTrue { it.hasKDoc }
}
test("Each function with parameters has param tags") {
Konsist.scopeFromPackage("..api..")
.functions()
.assertTrue { it.hasValidKDocParamTags() }
}
}
}
......@@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import kotlinx.coroutines.runBlocking
......
......@@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import kotlinx.coroutines.runBlocking
......
......@@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import co.touchlab.kermit.Logger
import com.skydoves.sandwich.StatusCode
......
......@@ -17,7 +17,7 @@
*/
@file:OptIn(KotestInternal::class)
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import io.kotest.common.ExperimentalKotest
import io.kotest.common.KotestInternal
......
......@@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import edu.ucsc.its.temerity.model.EventType
import io.kotest.common.ExperimentalKotest
......
......@@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import edu.ucsc.its.temerity.model.AuditLogSortOrder.NEW_FIRST
import edu.ucsc.its.temerity.model.DeviceRecordingSession
......
......@@ -17,7 +17,7 @@
*/
@file:OptIn(KotestInternal::class)
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import io.kotest.common.ExperimentalKotest
import io.kotest.common.KotestInternal
......
......@@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import co.touchlab.kermit.Logger
import com.skydoves.sandwich.StatusCode
......
......@@ -17,7 +17,7 @@
*/
@file:OptIn(KotestInternal::class)
package edu.ucsc.its.temerity.test
package edu.ucsc.its.temerity.test.kotest
import edu.ucsc.its.temerity.core.TemClientConfig
import edu.ucsc.its.temerity.core.Temerity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment