为自己解决Produce tree output with Surefire like the JUnit 5 console launcher的徒劳尝试,我在项目中添加了一个简单的JUnit Jupiter my-compile-command-fun
。通过将类名放入componentDidMount(){
var {state, setState} = this.props;
setState({doNotRender: true});
}
中的某个文件中进行注册,因此我假设它使用的是Java的componentDidUpdate(){
var {state, setState} = this.props;
if(!state.doNotRender){ //any_condition ur choice
setState({doNotRender: true});
}
}
。无论如何,它都是使用默认构造函数实例化的。
现在棘手的集成部分:使用Surefire运行时,所有写入到标准输出触发警告中–这不是Maven插件应该创建输出的方式。但是,在默认构造的侦听器中,我将如何访问Maven记录器?
也许扩展Surefire更加容易,而以某种方式将侦听器连接到其中?