Hello, I have big troubles using the latest autotest version (3.4.2)
My current project passes all the tests under the 3.3.0 version but
I get dozens of assertion errors with the 3.4.2
What’s wrong ?
Using my intensely powerful mind-reading psychic skills, I’ll have to
say that you forgot to sacrifice a goat.
Sacrifice a goat and that should fix it. In fact, two wouldn’t hurt.
Is there something special to do on the project configuration or
test scripts (I hope no) except executing autotest ?
Hrm, on second thought you could post some information about what
failures you’re getting with autotest 3.4.2 vs 3.3.0. Or perhaps
even file a bug with all this information.
Using my intensely powerful mind-reading psychic skills, I’ll have to
say that you forgot to sacrifice a goat.
Sacrifice a goat and that should fix it. In fact, two wouldn’t hurt.
I did it (almost, in fact it was a cow) but it the tests still don’t
pass…
Is there something special to do on the project configuration or test
scripts (I hope no) except executing autotest ?
Hrm, on second thought you could post some information about what
failures you’re getting with autotest 3.4.2 vs 3.3.0. Or perhaps even
file a bug with all this information.
There is nothing special in the test files : they pass successfully
rake:units and rake:functionals which I presume can be seen as a good
sign coming from the gods.
So, if there is a sorcerer around please tell me the main differences or
bugs introduced in the versions above 3.3.0 ? Do I have to modify the
test helper ? The test files ? (which would be a bad idea) ?
Is there something special to do on the project configuration or
test scripts (I hope no) except executing autotest ?
Hrm, on second thought you could post some information about what
failures you’re getting with autotest 3.4.2 vs 3.3.0. Or perhaps
even file a bug with all this information.
There is nothing special in the test files : they pass successfully
rake:units and rake:functionals which I presume can be seen as a
good sign coming from the gods.
Can you include a failure?
So, if there is a sorcerer around please tell me the main
differences or bugs introduced in the versions above 3.3.0 ? Do I
have to modify the test helper ? The test files ? (which would be a
bad idea) ?
There shouldn’t be any changes needed between 3.3 and 3.4.
A few things to try before you assume its autotest:
run the single failing test method in question by itself
run the functional test case in question by itself
run the functional test suite by itself
These steps will often turn up issues where fixtures aren’t specified
where they should be, or where test order is playing a part (where it
shouldn’t be).
Yes, the one below - Is there something wrong ? I really don’t see the
cause. Just for info, the test_helper.rb is unmodified.
Failure:
test_destroy(VehiculesControllerTest)
[./test/functional/vehicules_controller_test.rb:39]:
Expected response to be a <:success>, but was <302>
Failure:
test_destroy(VehiculesControllerTest)
[./test/functional/vehicules_controller_test.rb:39]:
Expected response to be a <:success>, but was <302>
HTTP 302 means Moved temporarily. have a look at your logs to what url
are the tests posting (with or without autotest). Or how the autotest
might interfere with it. Or why :success doesn’t include 302.
…not that I know anything about autotest nor rails testing…
A few things to try before you assume its autotest:
run the single failing test method in question by itself
run the functional test case in question by itself
run the functional test suite by itself
These steps will often turn up issues where fixtures aren’t specified
where they should be, or where test order is playing a part (where it
shouldn’t be).
Good idea, but what is the rake command to only run a test method, a
test case or a test suite ?
Thanks
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.