minitest
can't get test unit startup to work in ruby 1.9.2
I am using Ruby 1.9.2 (ruby -v yields :ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]), and I am trying to get this to work:[详细]
2023-04-11 00:11 分类:问答Ruby: Minitest/spec and BDD Gherkin
It seems that I cannot find much documentation on Minitest/spec so I was wondering if somebody could help me figure out how to do what I need to do.Basically I want to run tests on all my classes and[详细]
2023-04-10 13:19 分类:问答Multiple tests with minitest
I have an app with some specs written into minitest. As usual, I start them using rake. Because some times I got a random results, my specs can pass one time, and fail an other time.[详细]
2023-04-04 23:29 分类:问答How to use assert_select to test for presence of a given link?
My page should contain开发者_C百科 a link that looks like <a href=\"/desired_path/1\">Click to go</a>.[详细]
2023-03-29 07:49 分类:问答How do I stop Minitest?
In Ruby 1.9.1, I find that ctrl + c only kills a single unit test, and you can\'t stop the running of the entire testing program that way.[详细]
2023-03-24 22:19 分类:问答Getting Started with MiniTest and Rails
I want to switch an existing rails application from rspec to minitest starting wi开发者_StackOverflow中文版th the models. Therefore I created a folder test. Inside there I created a file named minites[详细]
2023-03-22 06:28 分类:问答Ruby Minitest: Suite- or Class- level setup?
Using the built-in Ruby Minitest framework, is there a way to run some code once before the entire suite runs, or even once before an entire TestClass runs?I see in the answer to this question that Te[详细]
2023-03-22 01:33 分类:问答How to set up MiniTest?
I\'m a fair开发者_开发问答ly novice tester, but have been trying to get better at TDD in Rails.[详细]
2023-03-20 13:14 分类:问答How to color unit tests with lib minitest or Test:Unit?
I would like to have unit tests output color in my dev environment. However, I can\'t make it work on Linux (Debian and Ubuntu). When I include the following libs:[详细]
2023-03-19 01:33 分类:问答What exactly is the :method: notation supposed to do for ruby docs?
Minitest has a bunch of methods defined like so: ## # :method: must_equal # See MiniTest::Assertions#assert_equal[详细]
2023-03-06 23:55 分类:问答