我有一個參數測試類,我有一個測試方法,我期望返回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)