我有一个参数测试类,我有一个测试方法,我期望返回IllegalArgumentException。 @RunWith(value = Parameterized.class)
public class TriangleParametrizedTest {
@Rule
public ExpectedException exception = ExpectedException
我写了一堆利用TestCaseAttribute的单元测试。当我使用ReSharper单元测试运行器时,这些测试在我的本地机器上运行良好。不幸的是,当我运行通过Visual Studio中的NUnit的VS适配器2.0.0.0我得到以下输出测试: ------ Run test started ------
NUnit VS Adapter 2.0.0.0 executing tests is
我必须读取一个CSV文件,并且每行中的每个组合都需要运行一些方法。我希望将每行看作一个测试用例。是否有可能发送行作为参数 - pytest参数化我的测试用例?你能给我一些关于如何做到这一点的想法吗? 下面是伪代码: class test_mytest:
def test_rows:
for row in csvreader:
run_method(row)