Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verification for tests to run (FEATURE REQUEST) #569

Open
joshm1204 opened this issue Aug 20, 2019 · 0 comments
Open

Add verification for tests to run (FEATURE REQUEST) #569

joshm1204 opened this issue Aug 20, 2019 · 0 comments
Labels

Comments

@joshm1204
Copy link

joshm1204 commented Aug 20, 2019

I noticed that if I have a small bug in the code, some tests do not run at all and there is no warning or error that the spec did not run. This can lead to an unnoticed failure, which shoudl be fixed.

This is a feature request, to add a "number of tests" verification at the end. Every time a test spec is added, it would be nice to have a separate test spec that checks the number of tests run/passed.

describe("Number of Passing Tests for my_page_spec", function(){
   it("should have 20 passing tests", function() {
     number_of_passing_tests = (SOME FUNCTION)
     expect(number_of_passing_tests ).toEqual(20); 
   });
});

describe("Number of Passing Tests for Entire Test Suite", function(){
   it("should have 1000 passing tests", function() {
     number_of_passing_tests = (SOME FUNCTION)
     expect(number_of_passing_tests ).toEqual(1000); 
   });
});

Is there a way to do this or add this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants