1. 首页
  2. 考试认证
  3. 其它
  4. JUnit Clojure测试运行器

JUnit Clojure测试运行器

上传者: 2024-12-11 06:09:03上传 ZIP文件 6.62KB 热度 5次

允许您像这样从 JUnit 运行 Clojure 测试:


package com.fivetran.junit;

import com.fivetran.junit.TestNS;

import junit.framework.Test;

import org.junit.runner.RunWith;

import org.junit.runners.AllTests;



@RunWith(AllTests.class)

public class TestRunner {

    public static Test suite() {

        return TestNS.suites(\"com.fivetran.junit.example-spec\");

    }

}

您需要确保您的源代码和测试目录在类路径中,以便 Clojure 可以找到。

下载地址
用户评论