开发者

how to setup test suite in ruby?

开发者 https://www.devze.com 2023-02-28 08:42 出处:网络
i am writing few ruby scripts and i wanted to write Unit tests and integration tests for it. i learnt that test/unit module is present in ruby.

i am writing few ruby scripts and i wanted to write Unit tests and integration tests for it.

i learnt that test/unit module is present in ruby.

in my scripts, i wrote ruby classes A and B which extends the common helper class Common

in both the class, i am trying to setup S3 connections.

i wrote A_test, B_tes开发者_Python百科t test cases.

when i run them individually, they work.

when i put together, they are not working. some of the variable in the initialize are getting set only for the class / tests which runs first.

if A_test is running first, then it works. B_test doesnt work.

any reason?


I can not answer your question well without some code samples, but consider the possibility that it's the code being tested that's the problem, not the tests.

0

精彩评论

暂无评论...
验证码 换一张
取 消