Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8146957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:11:08+00:00 2026-06-06T14:11:08+00:00

I am trying to use nosetests to run all test cases inside my project.

  • 0

I am trying to use nosetests to run all test cases inside my project.

I cd to my project directory:

cd projects/myproject

Then I do:

nosetests

Which outputs:

----------------------------------------------------------------------
Ran 0 tests in 0.001s

OK

Inside projects/myproject I have a package called Encode and inside the package I have Test directory with tests:

Encode/
    __init__.py
    Video.py
    Ffmpeg.py
    Test/
        VideoTest.py
        FfmpegTest.py

Why is nosetests not detecting my unit tests? All of my unit test classes extend unittest.TestCase.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:11:10+00:00Added an answer on June 6, 2026 at 2:11 pm

    From the nose docs:

    Any function or class that matches the configured testMatch regular expression ((?:^|[\b_\.-])[Tt]est) by default – that is, has test or Test at a word boundary or following a – or _) and lives in a module that also matches that expression will be run as a test.

    Your tests aren’t being found because your filenames don’t match the pattern. Change them to Video_Test.py, or Test_Video.py, for example. BTW: It’s also odd that they have camelCase names like that, but that won’t stop them from working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying use a set of filter functions to run the appropriate routine,
Trying to use this method (gist of which is use self.method_name in the FunnyHelper
trying to use regex to replace any white space with  , inside of example
I have been trying use the edit_post_link() function to contain an image. All of
I'm trying use an object which wasn't available until SDK level 5. It seems
I'm trying use Google iosched as a reference project to learn the best practices
Trying to use an excpetion class which could provide location reference for XML parsing,
I am trying use an iterator to go through a set and then do
I'm trying use a Visual Studio 2010 setup project to package a set of
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.