PIT花费的时间太长,并且由于MEMORY_ERROR而导致Minion异常退出

时间:2019-06-13 18:38:37

标签: mutation pitest

我的项目有8个模块。在Jenkins建立阶段之后,我们有Junit和PIT,但Pitest花费了很长时间。我看到控制台输出为

“小兵由于MEMORY_ERROR而异常退出” 我试图保留不同的jvm args,但是出现相同的错误,并花费了大约2个小时的长时间

<template>
  <div id="app">
    <div class="input-container">
      <input type="text" placeholder="new task" v-model="title"/>
      <button type="button" v-on:click="addBlock()">Add</button>
    </div>
    <kanban-board :stages="stages" :blocks="blocks">
      <div v-for="stage in stages" :slot="stage" :key="stage">
        <h2>{{ stage }}</h2>
      </div>
      <div v-for="block in blocks" :slot="block.id" :key="block.id">
        <button type="button" @click="removeBlock(block)" class="btn btn-default">X</button>
        <div>
          {{ block.title }}
        </div>
      </div>
    </kanban-board>
  </div>
</template>

<script>
import { todosCollection } from './firebase';
export default {
  name: 'app',
  data () {
    return {
      stages: ['on-hold', 'in-progress', 'needs-review', 'approved'],
      blocks: [],
      title: null,
      id: 0,
      status: 'on-hold'
    }
  },
  created() {
    this.getData()
  },
  methods: {
    getData() {
      const blocks = []
      const stages =[]
      todosCollection.get()
      .then(snapshot => {
        snapshot.forEach(doc => {
          let newBlock = doc.data()
          newBlock.id = doc.id
          blocks.push(newBlock)
        })
        this.blocks = blocks
        this.id += 1;
        this.title = "";
      })
    },
    addBlock() {
      todosCollection.add({
        id: this.id,
        title: this.title,
        status: this.status
      })
      .then(() => {
        this.getData()
      })
    },
    removeBlock(block) {
      todosCollection.doc(block.id).delete()
      .then(() => {
        this.getData()
      })
    }
  }
}
</script>

<style lang="scss">
  @import './assets/kanban.scss';

  #app {
    font: 400 15px Lato, sans-serif;
  }
  .input-container {
    width: 50%;
    margin: 0 auto;
  }
</style>

0 个答案:

没有答案