How do you use test-unit?

luther

My test/run_test.rb is exactly as the docs have it here. My test/spec.rb has simply puts 'hello', yet running ruby test/run_test.rb outputs nothing at all.

I can't find any other documentation on test-unit.

David Grayson

Rename test/spec.rb to test/foo_test.rb, as your test files need to end with _test.rb.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do you unit test a Celery task?

How do you unit test a Celery task?

How do you skip a unit test in Django?

How do you Unit Test Python DataFrames

How do you unit test private methods?

How do you unit test Django RawQuerySets

How do you moq a class for unit test

How do you test django-axes with a Django unit test?

How to write unit test when you use Future?

How do you unit test Google Cloud NDB code?

How do you unit test a JavaFX controller with JUnit

How do you write a unit test for a function that is not exported?

How do you unit test Java EE code?

How do you perform unit test on a particular method of a struct in Go

How do you override a module/dependency in a unit test with Dagger 2.0?

How do you unit test office.js app code?

How do you unit test unique method calls in Jasmine/Jest?

How do you deal with a fluctuating unit test case with Jasmine?

In a unit test, do you verify and assert?

How do I use sensitive data in a unit test in VSTS?

How do I write a unit test for controller use automapper?

How do you mock classes that are used in a service that you're trying to unit test using JUnit + Mockito

Which tools/libraries do you use to unit test your PL/PgSQL

How to do unit test for Exceptions?

How do you use batch IF EXIST to test directories?

How shall I use fakesAync in Angular unit test when you make an HTTP call that returns an observable?

In a React/Jest unit test, how do you simulate an event prop being called by a mocked component?

How do you unit test LoggerMessage.Define() in .NET Core 3.1 with Moq?

How do you unit test a binding with a different name in an Angular 1.5 component?