|
|
@@ -1,3 +1,47 @@
|
|
|
<template>
|
|
|
- <h1>TEST</h1>
|
|
|
+ <div class="columns is-desktop">
|
|
|
+ <div class="column">
|
|
|
+ <div class="page-section">
|
|
|
+ <h5 class="title is-5">单元测试:</h5>
|
|
|
+ <div
|
|
|
+ class="test-item"
|
|
|
+ :key="item.id"
|
|
|
+ v-for="item in projectDetail.unitTestList"
|
|
|
+ >
|
|
|
+ <div><strong>UNIT TEST : #</strong> {{ item.id }}</div>
|
|
|
+ <pass-tag :pass="item.isPassAll" />
|
|
|
+ <span>{{ item.time }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="column"><div class="page-section">b</div></div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import PassTag from "@/views/student/Code/ProjectDetail/components/PassTag";
|
|
|
+export default {
|
|
|
+ components: { PassTag },
|
|
|
+ props: {
|
|
|
+ projectDetail: {
|
|
|
+ type: Object,
|
|
|
+ default: () => ({
|
|
|
+ unitTestList: [],
|
|
|
+ functionTestList: []
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+@import "../../../../assets/scss/app";
|
|
|
+.test-item {
|
|
|
+ padding: $default-margin $default-margin-between;
|
|
|
+ margin: 0 -#{$default-margin-between};
|
|
|
+}
|
|
|
+
|
|
|
+.test-item:nth-child(odd) {
|
|
|
+ background-color: blue;
|
|
|
+}
|
|
|
+</style>
|